Development

GIT alias shortcuts in terminal

Using GIT frequently typing the full git commands every time quickly becomes tedious, thankfully ter...

David Carr


Laravel Framework

Laravel 5.4 access auth in constructor using middleware

There are times it’s useful to be able to access the auth system in a construct method. You ca...

David Carr


PHP & MySQL | Tutorials

PHP read file from network drive

I’m working on a local hosted project where php needs to read a text file that’s stored...

David Carr


Networking | Development

CodePenHull Meet Up April Review

Last night I attended the 2nd CodePenHull meetup for web developers and designers, along with my tea...

David Carr


Tools | Reviews | Development

The PHP magazine you should be reading PHP Architect

I’ve recently subscribed to php[architect] I’ve been blown away by the quality of the ma...

David Carr


Tools

Fixing Chrome Syncing problem

Recently I reinstalled Google Chrome signed into my Google account to sync my passwords. My bookmark...

David Carr


Nova Framework

Using Carbon time ago aka diffForHumans() with Nova Framework

Carbon is an amazing date library that is included with Nova. One of it’s features is being ab...

David Carr


Development

Working with bank holidays with a Carbon wrapper

Working with dates in php is easy but working with bank holidays is a little more involved thankfull...

David Carr


Tools

Free SSL's with A2hosting and Let's Encrypt

Recently many browsers will start flagging sites that do not use the HTTPS protocol as unsafe. A2hos...

David Carr


PHP & MySQL | Tutorials

MySQL find and replace

There are times when you need to bulk update a database. Such as changing all references of domain.c...

David Carr


PHP & MySQL

MySQL next record order by title

A common requirement for web applications is the ability to be able to move to the next and previous...

David Carr


Nova Framework

Using MAMP and dealing with the error: mysql No such file or directory

I’ve got a fresh install of Nova Framework installed and decided to use MAMP as my server and...

David Carr


Bash | Tutorials

Creating an alias in terminal

I often run local sites from a projects folder that is stored in a dropbox folder the full path is l...

David Carr


PHP & MySQL | Tutorials

Quick way to get the number of days in a month with PHP

I’m building a php calendar and need to know the total number of days in a month in the past I...

David Carr


Tools

Get a free SSL certificate using Cloudflare

Cloudflare will give you a free SSL certificate, the steps involved are really simple, this guide wi...

David Carr


PHP & MySQL | Tutorials

Splitting an array into smaller arrays using array_chunk

There a times when you have an array and need to slit that array into smaller ones, I usually reach...

David Carr


Tools

Bear writing app for iPhone, iPad and Mac

I’ve heard a lot of people talking about how good a writing app called Bear was, after hearing...

David Carr


Personal | Design

My office setup

At work we recently moved into a new building, my desk setup changed as a result a few people have a...

David Carr


Development

Cases where php's short tags should be avoided

When designing my email layout files I like to break them down into parts and include them together...

David Carr


Nova Framework | PHP & MySQL | Tutorials

Using X-editable for inline editing

X-editable allows you to create editable elements on your page. Includes both popup and inline...

David Carr


CSS

Stop Bootstrap drop menu's being cut off in responsive tables

Bootstrap’s dropdown menu’s a great for display items in a tidy way but suffer for being...

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.