美文网首页
Hash式备忘录之laravel,resource生成命令

Hash式备忘录之laravel,resource生成命令

作者: tarscoding | 来源:发表于2017-07-21 15:46 被阅读19次

Resource在设置路由控制器上比较便捷,虽然失去了一些自由度,选择与否根据具体情况而定.

路由:

image.png

控制器:

默认生成的public方法有:
index(),create(),store(),show(),edit(),update(),destroy()

默认

命令:

image.png
php artisan make:controller xxxxx/xxxxx --resource --model=xxxx\/xxxx/\xxxx

相关文章

网友评论

      本文标题:Hash式备忘录之laravel,resource生成命令

      本文链接:https://www.haomeiwen.com/subject/lejekxtx.html