$ composer create-project laravel/laravel example-app
$ php artisan serve
http://127.0.0.1:8000
.Laravel migrations help manage database schema changes over time.
$ php artisan make:migration migration-name
$ php artisan migrate
You can use this command to migrate and create tables in your database.
$ php artisan migrate:rollback
$ php artisan migrate:rollback --path=/database/migrations/2024_09_02_192702_create_size.php
Rolls back only the specified migration file instead of all migrations.
$ php artisan migrate:reset
migrate:rollback
, this does not just roll back the last batch but resets everything.$ php artisan make:controller controllerName
app/Http/Controllers/
.php artisan make:controller UserController
creates UserController.php
.$ php artisan db:seed
database/seeders/
.$ php artisan storage:link
storage/app/public
to public/storage
.