Useful Laravel artisan Commands

For making a applications with laravel, we need to run some commands to create quick elements.

For migrating a specific file in laravel

php artisan migrate --path=/database/migrations/test/

For Undo last Migration for specific file in laravel

php artisan migrate:rollback --path=/database/migrations/test/

For getting sql from laravel query

Model::where($conditions)->toSql()

For clearing configuration cache of your laravel Application

Php artisan config:cache

For Clearing cache of your laravel application

Php artisan cache:clear

For Clearing route cache of your laravel application

Php artisan route:clear

For Clearing view cache of your laravel application

Php artisan view:clear

Add login with google oauth2 in your laravel application

Leave a Reply

Your email address will not be published. Required fields are marked *