laravel 5.1 如何生成空的controller ?

WBOY
Release: 2016-07-06 13:54:12
Original
1132 people have browsed it

php artisan make:controller Home/NameController.php

这句话生成的控制器里头有很多方法,每次去删真的很麻烦!

回复内容:

php artisan make:controller Home/NameController.php

这句话生成的控制器里头有很多方法,每次去删真的很麻烦!

<code>php artisan make:controller Home/NameController.php --plain</code>
Copy after login

楼上正解!5.1要加 --plain,5.2用命令就直接生成空的控制器了。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!