如何在Laravel 5.1中使用工匠制作视图 [英] How to use artisan to make views in laravel 5.1

查看:68
本文介绍了如何在Laravel 5.1中使用工匠制作视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在文档中寻找使用基本 CURD 操作制作视图的解决方案,但没有取得太大成功.

I have been looking in the docs for a solution to make views with basic CURD operations but without much success.

我想这可能很简单,但是缺少一些东西或看起来不够努力.

I guess this might be pretty simple, but am missing something or not looking hard enough.

我可以使用以下工匠命令来制作模型和控制器

i can make models and controllers using the below artisan commands

php artisan make:model modelName

php artisan make:controller controllerName

但是我们如何制作基本的CURD视图.像

But how do we make the basic CURD views. something like

 php artisan make:views

不能为此找到任何文档.请帮助

cant find any doc for this. Please help

推荐答案

在撰写本文时,没有一种方法可以通过artisan来创建视图,而无需编写您自己的命令或使用第三方程序包.您可以按照建议的方式编写自己的文字,也可以使用 sven/artisan-view .

At the time of writing, there isn't a way to create views via artisan without writing your own command or using a third party package. You could write your own as already suggested or use sven/artisan-view.

这篇关于如何在Laravel 5.1中使用工匠制作视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆