在根文件夹上使用此命令:
create the only Migration file:
php artisan make:migration create_products_table --create=products
创建迁移,模型文件:
php artisan make:model Product -m
For Create Migration,Model,Controller file:
php artisan make:model Product -mcr
If you want to do it manually then you may set --path
as per your folder requirement.
php artisan make:migration filename --path=/app/database/migrations/relations
php artisan make:migration filename --path=/app/database/migrations/translations
如果要迁移,请执行以下操作:
php artisan migrate --path="/app/database/migrations/relations"