在 laravel 5.2 中使用单个命令制作模型和迁移
making model and migration with a single command in laravel 5.2
我按照教程尝试过这个 artisan 命令
php artisan make:model Foo -m
但是我得到这个错误:
exception 'RuntimeException' with message 'The "-m" option does not exist.'
为什么不识别?
如果这是一种错误的方法,那么正确的方法是什么?
简而言之,这就是您的做法。
C:\xampp\htdocs\lms>php artisan make:model Test -m
Model created successfully.
Created Migration: 2016_08_29_160434_create_tests_table
It must work. If that does not, do.
C:\xampp\htdocs\lms>composer install.
and that should work.
我按照教程尝试过这个 artisan 命令
php artisan make:model Foo -m
但是我得到这个错误:
exception 'RuntimeException' with message 'The "-m" option does not exist.'
为什么不识别?
如果这是一种错误的方法,那么正确的方法是什么?
简而言之,这就是您的做法。
C:\xampp\htdocs\lms>php artisan make:model Test -m
Model created successfully.
Created Migration: 2016_08_29_160434_create_tests_table
It must work. If that does not, do.
C:\xampp\htdocs\lms>composer install.
and that should work.