Posts in category: PHP & MySQL

Laravel Framework | PHP & MySQL | Tutorials

Laravel add custom exception handling

Laravel comes with support for many types of exceptions, some are handled to load a 404 page others...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel add login throttling with custom login controller

When using a custom login controller by default it won't have the login throttling applied.

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Create an XML sitemap

Creating xml sitemaps are great for Google to inform their search bots of all your pages and th...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel create an RSS reed

In this post, I'll explain how to create an RSS feed, In your controller query a model, in this...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel get previous and next record

A really common task is to display links for the previous and next record typically you find these o...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel force https with url helper

using the url() helper is great for creating full http links, I use this for all links, when wo...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel blade - Remove the last comma from array

Using the $loop variable inside of a loop it’s easy to check when you're at the start or t...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel 5.5 change public to public_html

When moving Laravel onto a production server I like to place all Laravel files in their own director...

David Carr


Laravel Framework | PHP & MySQL | Tutorials

Laravel 5.5 use a prefix on database tables

I like to prefix my database tables to avoid any conflicts if using different applications within th...

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


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


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


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


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


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.