mercredi 30 décembre 2015

Scaffold Controller Laravel 5.2 Artisan

I am running following command:

php artisan make:controller UserController

This is successfully creating Controller but i want to scaffold it with all the basic methods. Can someone tell how i can do that. Thanks



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NTgMta
via IFTTT

1 commentaire:

  1. Hi,

    To scaffold it with all basic methods, now in Laravel 5.2 you need to generate the controller with --resource flag.

    E.g php artisan make:controller UserController --resource

    See you!

    RépondreSupprimer