1

我按照教程尝试了这个工匠命令

php artisan make:model Foo -m

但我收到此错误:

exception 'RuntimeException' with message 'The "-m" option does not exist.' 

为什么它不承认这一点?
如果这是一种错误的方法,那么正确的方法是什么?

4

1 回答 1

1

简而言之,这就是你的做法。

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.
于 2016-08-29T16:05:53.600 回答