0% found this document useful (0 votes)
207 views1 page

Laravel 5.8: Artisan Cheat Sheet: by Via

This document provides a cheat sheet for common Laravel Artisan commands organized into categories like general commands, migrations, making resources, and publishing packages. It allows developers to quickly reference commands for tasks like serving the application, generating keys, caching configurations, migrating databases, generating authentication scaffolds, and publishing package configurations.

Uploaded by

Ali Boubaker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
207 views1 page

Laravel 5.8: Artisan Cheat Sheet: by Via

This document provides a cheat sheet for common Laravel Artisan commands organized into categories like general commands, migrations, making resources, and publishing packages. It allows developers to quickly reference commands for tasks like serving the application, generating keys, caching configurations, migrating databases, generating authentication scaffolds, and publishing package configurations.

Uploaded by

Ali Boubaker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Laravel 5.

8: Artisan Cheat Sheet


by cudacoder (cudacoder) via cheatography.com/83573/cs/19803/

General

php artisan --env=dev Use .env.dev file

php artisan optimize Dump composer autoload and compile common classes and view
files

php artisan optimi​ze:​clear Clear optimized files

php artisan serve Serve applic​ation using the serve​r.php file

php artisan key:ge​nerate Generate APP_KEY in .env

php artisan config​:cache Cache app settings and .env variables

php artisan vendor​:pu​blish --tag=​lar​ave​l-n​oti​fic​‐ Publish assets for Laravel's default email template
ations

Migrations

php artisan migrate Migrate

php artisan migrate --seed Migrate + Seed

php artisan migrat​e:fresh --seed Migrate (from scratch) + Seed

php artisan migrat​e:i​nstall Install migrations to DB configured in .env file

Make

php artisan make:auth Make Authen​tic​ation

php artisan make:s​eeder <na​me> Make a Seeder

php artisan make:f​actory <na​me> Make a Factory

php artisan make:r​equest <na​me> Make a Request

php artisan make:r​esource <na​me> Make a Resource

php artisan make:m​igr​ation <na​me> Make a Migration

php artisan make:model -m "​pat​h\i​n\a​pp​\<na​me>​" Make a Model + Migration

php artisan make:mail <na​me> Make Mail (using default template)

php artisan make:c​ont​roller "​pat​h\i​n\a​pp​\<na​me>​" Make a Controller (with custom path)

php artisan make:n​oti​fic​ation Make a Notifi​cation

ide-helper Package

php artisan ide-he​lpe​r:g​ene​rate Generate ide-helper file

php artisan ide-he​lpe​r:m​odels Generate DocBlocks for your models


using ide-helper
php artisan vendor​:pu​blish --prov​ide​r="B​arr​yvd​h\L​ara​vel​Ide​Hel​per​\Id​eHe​lpe​‐ Publish ide-h​elper config file
rSe​rvi​ceP​rov​ide​r" --tag=​config

spatie​/la​rav​el-​per​mission Package

php artisan vendor​:pu​blish --prov​ide​r="S​pat​ie​\Per​mis​sio​n\P​erm​iss​ion​Ser​vic​ePr​ovi​der​" -- Publish package's


tag=​"​con​fig​" settings

By cudacoder (cudacoder) Published 14th July, 2019. Sponsored by CrosswordCheats.com


cheatography.com/cudacoder/ Last updated 17th September, 2019. Learn to solve cryptic crosswords!
twitter.com/cudacoder Page 1 of 1. http://crosswordcheats.com

You might also like