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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置