我按照教程
尝试了这个工匠命令php artisan make:model Foo -m
但是我收到了这个错误:
exception 'RuntimeException' with message 'The "-m" option does not exist.'
为什么它没有意识到这一点?
如果这是一个错误的方法,那么正确的方法是什么?
答案 0 :(得分:0)
简而言之,就是这样做。
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.