Posts in category: Tutorials

PHP & MySQL | Tutorials

PHP search string

Here's a quick way to search for a word inside a string

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel Module routes list

I build all my projects with modules. There are times it would be useful to see all routes but...

David Carr


Htaccess | Tutorials

Mask a .php page with Mod Rewrite

Let's say you have a static website with various PHP files. These form the URL such as domains.c...

David Carr


PHP & MySQL | Tutorials

Formatting dates to use timezone

Working with dates can get complicated when you need a time to change depending on the time of year...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel download base64 encoded files

Laravel has the ability to stream files from disc and remove them as soon as they've been downlo...

David Carr


PHP & MySQL | Tutorials

strtotime Add Two Working Days

There are times you want to add days to a date but only working days, so weekends are ignored.

David Carr


Tutorials | Development

Crontab command to delete itself

I was asked today can you run a cronjob only once. My initial answer was no you cannot as the least...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel download files from a route

Laravel makes downloading a server file very easy, in this post I'm going to show a way to downl...

David Carr


Demos | Blog | PHP & MySQL | Tutorials

Creating a blog from scratch with PHP - Part 9 Cover Image

In this part, we will add a cover photo to the blog posts.

David Carr


Javascript | HTML | Tutorials

Dealing with posting large number of checkboxes

When you have a form with lots of checkboxes, you may hit a limit to how many you can post. I had th...

David Carr


Tutorials | Ubuntu | Development

Install Let’s Encrypt Free SSL Wildcard Certificate on ubuntu 18

If you want a quick solution for adding SSL/TLS to your website, then you should definitely go ahead...

Lakin Mohapatra


Laravel Framework | PHP & MySQL | Tutorials

Essential Laravel Packages

Laravel comes with a lot out the box, however, you'll often add third-party packages to add extr...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel accessing auth in Service Providers

There are times being able to use Auth within service providers is really useful such as showing men...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel import large CSV file

I recently had to import a 30,000 line CSV file, in this post, I document how I tackled this ta...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel send multiple attachments to Mailables

In this post, I show you how to send multiple attachments to a mailable class.

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.