Artisan Notes

php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
php artisan make:migration create_account_user_table --create=account_user

php artisan make:seeder UsersTableSeeder

php artisan migrate:refresh --seed
php artisan migrate --path=database/migrations/2014_10_12_000000_create_users_table.php

php artisan db:seed
php artisan db:seed --class=UserSeeder

php artisan make:model BlogPost -m
php artisan make:controller Admin/BlogPostController --resource --model=BlogPost
php artisan make:controller Api/V1/BlogPostController --api --model=BlogPost
php artisan make:policy BlogPostPolicy --model=BlogPost
php artisan make:request StoreBlogPost
php artisan make:request UpdateBlogPost
php artisan make:factory BlogPostFactory --model=BlogPost
php artisan make:seeder BlogPostSeeder

php artisan make:resource UserResource
php artisan make:resource UserCollection
php artisan make:resource User --collection

php artisan make:notification InvoicePaid

php artisan make:mail OrderShipped
php artisan make:mail OrderShipped --markdown=emails.orders.shipped

php artisan make:import UsersImport --model=User

php artisan make:component Layouts/Navbar

php artisan make:middleware SetLocale


php artisan route:list

php artisan storage:link

php artisan optimize:clear

composer dump-autoload


php artisan key:generate

26th Mar 2024 — Ivan Shipilov

2024 iShipilov.ru
developed by iShipilov