Laravel Artisan Commands Every Beginner Should Know
A handy cheat sheet of essential Laravel Artisan commands every beginner should know — for making files, managing your database, and more.
Artisan is Laravel's built in command line tool. It automates repetitive tasks so you don't have to create files or run maintenance tasks by hand. This cheat sheet covers the commands you'll reach for constantly as a beginner. Viewing All Available Commands php artisan list Project Setup & Server Command Purpose php artisan serve Start the local development server php artisan version Check your installed Laravel version php artisan key:generate Generate a new application encryption key File Generation ("make" Commands) Command Creates php artisan make:controller ProductController A controller php artisan make:controller ProductController resource A CRUD ready controller php artisan make:model Product A model php artisan make:model Product m A model + migration together php artisan make:migration create products table A migration file php artisan make:seeder ProductSeeder A databas...
Home · Projects · Articles · Developer tools · Contact