Clearing all of the cache types in Laravel
How to clear all of the different Laravel cache types using the Laravel Artisan console. Clearing the application cache The application cache or simply said as “cache” is the data…
How to clear all of the different Laravel cache types using the Laravel Artisan console. Clearing the application cache The application cache or simply said as “cache” is the data…
How to change the default Laravel authentication routes such as Login and register to your own custom-defined routes. This example will change the default login route from /login to /signin….
Validating a registration form in Laravel to return an error message if the submitted username already exists. This can be used for other fields like an email address or a…
How to have randomly generated strings as user ids in Laravel instead of incrementing integers. By having random strings for identification you can avoid revealing how many users you have,…
Creating and installing a blank Laravel app on an Ubuntu 22.04 Vultr instance to be snapshotted for rapid redeployment. This includes Apache, Composer and PHP 8.1 installations. Current promotion free…
A MySQL Foreign key is a field or multiple fields in a table that identify to other another table uniquely to enforce data integrity. This relationship can also be seen…
Creating a form to upload multiple files using Laravel 9 with file type and size validation. Included is a controller, model, upload form and migration for the database table to…
How to do an image upload form and handler in Laravel 9 with file validation. Included is a controller, upload form and migration for the database table to store information…
Using the Laravel route() helper function to generate URLs for named routes. This follows on from creating named routes where creating links to pages and passing in parameters is done…
A method to view your Laravel routes with PHP code that is an alternative to the command php artisan route:list –except-vendor. In this post the routes will be displayed in…