Posts by author: David Carr

Development

Mariabdb Avoid Invalid datetime format: when date is empty

When inserting records any columns with a datatype set to date which are empty will generate this er...

David Carr


Laravel Framework | PHP & MySQL

Laravel 5.4 toggle sidebar state with AdminLte using Ajax and Sessions

AdminLte is a great Admin theme, one feature that’s really good is being able to toggle the si...

David Carr


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


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.