Your Laravel Artisan command cheat sheet! Quick notes and examples for developers working with the Laravel framework. Find commands for migrations, controllers, models, and more.
1. Create a new migration:
php artisan make:migration create_users_table
Creates a new migration file in the database/migrations directory.
database/migrations
2. Create a...
1. Creating a Model:
php artisan make:model Post
This command creates a new model file named Post.php in the app/Models...
Post.php
app/Models
1. Basic Controller Creation:
php artisan make:controller MyController
2. Controller with Resource Methods (CRUD):
php artisan make:controller MyController --resource
CRUD...