Search code examples
laravel-5viewlaravel-5.1

How to use artisan to make views in laravel 5.1


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

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

 php artisan make:views

cant find any doc for this. Please help


Solution

  • 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.