Posts

How to disable registration in Laravel Auth routes?

< 1 min readTo disable registration in Laravel’s built-in authentication system, you can follow these steps: 1. Open the routes/web.php file. 2. Comment out or remove the following line: 3. Add the following lines to the file: This will remove the registration routes and leave only the authentication, password reset, and email verification routes.

Read More

How to run specific migration in Laravel?

< 1 min readTo run a specific migration in Laravel, you can use the migrate Artisan command with the –path option and specify the path to the migration file. For example, if you have a migration file located at database/migrations/2018_01_01_000001_create_users_table.php, you can run the following command to migrate this specific migration: You can also use the –force option…

Read More