A Laravel and PHP Blog

Easily assign variable when using explode in PHP

PHP & MySQL Tutorials

I use explode all the time, for splitting strings into parts, there is a cleaner way......

David Carr


Latitude and Longitude with Google Maps

PHP & MySQL Javascript HTML Tutorials

Google Maps allows using its service to get map coordinates....

David Carr


Laravel Merge PDFs

Laravel Framework PHP & MySQL Tutorials

Ever needed to merge multiple PDF's together? It's a common need. In this tutorial, I'll...

David Carr


Laravel API change unauthenticated message

API Laravel Framework Tutorials

When making API calls to Laravel when a user who is not authenticated makes a call a 401 status...

David Carr


Laravel returns 302 for unauthenticated calls

API Laravel Framework Tutorials

I've started to secure API calls with Laravel Airlock, when calling a route that's been secu...

David Carr


Upgrade Laravel Valet to PHP 7.4

Laravel Framework Tutorials

First you should upgrade your machine to PHP 7.4...

David Carr


How to integrate PayPal into PHP

PayPal PHP & MySQL Tutorials

In this post, I’ll explain how to use PayPal for one-off payment and how to use the Instant Pa...

David Carr


Send emails with Office 365 SMTP

Tutorials PHP & MySQL Laravel Framework

Office 365 is great for handling emails but it can also be used as an SMTP relay for your website. I...

David Carr


V1 PDO Wrapper released

PHP & MySQL Tutorials

I've updated and pushed a new release to my PDO Wrapper package.

David Carr


Test composer packages locally

PHP & MySQL Tutorials

When developing a new composer package you will want to test it locally before uploading it to Packa...

David Carr


Convert translate message calls to a single json language file

Packages Laravel Framework Tutorials

Laravel supports using the __() call to setup locale for your pages ie in a blade file you may have...

David Carr


MySQL 8.0+ error: The server requested authentication method unknown to the client

Development

Upgraded MySQL to v8 and starting getting connection errors due to how MySQL 8 defaults to auth_sock...

David Carr


Switching between PHP versions with Homebrew

Bash Tutorials Development

With Homebrew it's possible to have multiple versions of PHP installed at once, to switch which...

David Carr


Upgrade PHP 7.4 with Homebrew

Development

PHP 7.4 came out this week, so it's time to upgrade! 

David Carr


Laravel adding custom validation errors

Laravel Framework PHP & MySQL Tutorials

Have a situation where you need to add custom errors to the error array after validation? this post...

David Carr


Help support the blog so that I can continue creating new content!

Subscribe to my newsletter

Subscribe and get my books and product announcements.

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