drhwb470572 2019-02-14 07:03
浏览 173
已采纳

使用Nwidart模块时,资源控制器不使用artisan命令行创建

I am using Nwidart in my laravel 5.6 application for modules system.

Outside module I can use this command:

php artisan make:model Product -mcr

This command create a model, resource controller, migration. But when I want a model inside a module product, this command is not working. I write this command:

php artisan module:make-model Product -mcr

This command is giving this error-

The "-c" option does not exist.

what can I do for solving the problem?

  • 写回答

2条回答 默认 最新

  • douduan3203 2019-02-14 08:19
    关注

    module:make-model is a custom command provided by the package you're using. This command does not support the -c or -r options. It only supports the -m option to generate the migration, and a --fillable option to specify the fillable fields.

    You can view the source of the command here.

    You'll need to run a separate command to generate the resource controller (module:make-controller).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果