In this tutorial you will learn about the Laravel 7/6 Artisan Console Command Cheat Sheet and its application with practical example.
In this Laravel artisan commands cheat sheet tutorial I will share you the complete list of laravel artisan command. In this tutorial I will also share a complete cheat sheet of the laravel artisan command for quick reference. I will also list all laravel artisan commands.
- Laravel 7/6 Artisan Console Command Cheat Sheet
- Check Your Laravel Application Version
- Laravel Composer dump-autoload:
- Laravel Application Serve:
- Interact with the Laravel Application:
- Publish a package’s assets to the public directory:
- Generate Application Key in Laravel:
- Laravel Database migrations:
- Create a new resourceful controller in Laravel:
- Generate database migration along with model in Laravel:
- Generate database seeder in Laravel:
- Create new middleware in Laravel:
- Lists active routes in Laravel Application:
- Create symbolic link in Laravel:
- Flush the Laravel Application cache:
Laravel 7/6 Artisan Console Command Cheat Sheet
In this tutorial I will also share a complete cheat sheet of the laravel artisan command for quick reference.
Check Your Laravel Application Version
1 |
php artisan --version OR -V |
Laravel Composer dump-autoload:
It just regenerates the list of all classes that need to be included in the project (autoload_classmap.php), and this is why your migration is working after you run that command.
1 |
php artisan dump-autoload |
Laravel lists artisan commands:
1 |
php artisan list |
Laravel Application Serve:
1 |
php artisan serve |
Interact with the Laravel Application:
1 |
php artisan tinker |
Publish a package’s assets to the public directory:
1 |
php artisan asset:publish [--bench[="vendor/package"]] [--path[="..."]] [package] |
Generate Application Key in Laravel:
1 |
php artisan key:generate |
Laravel Database migrations:
1 |
php artisan migrate |
Create a new resourceful controller in Laravel:
1 |
php artisan controller:make [--bench="vendor/package"] |
Generate database migration along with model in Laravel:
1 |
php artisan make:model User --migration OR -m |
Generate database seeder in Laravel:
1 |
php artisan make:seeder [Table Seeder] |
Create new middleware in Laravel:
1 |
Make:middleware [Middleware name] |
Lists active routes in Laravel Application:
1 |
Route:list |
Create symbolic link in Laravel:
Create symbolic link from public/storage
to storage/app/public
1 |
Storage:link |
Flush the Laravel Application cache:
1 |
php artisan cache:clear |