How to split your Laravel routes into directories

3 years ago

How to split Laravel routes into directories or subfolders for more organisation and to keep the route files smaller. In…

In Laravel what does the isDirty method do?

3 years ago

In Laravel the isDirty method can be used to examine the state of your model and its data to determine…

Prevent search engine indexing with a simple HTML meta tag

3 years ago

Preventing a page from being indexed by search engines has never been easier, all it takes is a meta tag…

Generating a sitemap from a PHP PDO select query

3 years ago

A quick and easy method to generate a sitemap file from a PHP PDO select query with a foreach loop…

Cloning an NVMe to SK Hynix Platinum P41 NVMe

3 years ago

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum P41 NVMe, however I ran…

Redirect URL to previous route in Laravel

3 years ago

To return back to the previous route in Laravel simply just use the back() method: return back(); back() will create…

A quick method to have custom validation messages with Laravel

3 years ago

A quick method in Laravel to provide custom validation error messages. This generally isn't needed however if you want to…

Laravel redirect on a missing model resource instead of 404

3 years ago

When a model resource is not found in Laravel you get an HTTP 404 not found, however you can also…

Laravel change where users are redirect to after login

3 years ago

Changing the redirect location for when users login in Laravel. You can find this value at the below location app/providers/RouteServiceProvider.php…

Bypass a global scope in a Laravel Eloquent query

3 years ago

How to easily bypass or exclude a global scope on a Laravel model. Remove a registered global scope by using…