Posts in category: Laravel Framework

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


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


Laravel Framework

Laravel 5.3 login with username instead of email

Laravel’s built in auth system uses an email address and password to validate credentials for...

David Carr


Laravel Framework

Laravel 5.3 send errors to email

Errors in Laravel are logged to files. That’s useful for monitoring when things go wrong. For...

David Carr


Laravel Framework

Laravel 5.3 install whoops

In older versions of Laravel error’s where displayed using the Whoops. In recent versions it&r...

David Carr


Laravel Framework

laravel 5.3 disable registration

Laravel comes with build in auth which includes, login, register and forgot password. In this post I...

David Carr


Laravel Framework

Laravel Auto redirect if not logged in

Some application are login only meaning there is no ‘front page’ so when landing on the...

David Carr


Laravel Framework

Installing Laravel installer globally on Mac

Laravel comes with a handy command line installer, once installed can be ran anywhere from terminal...

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.