vendredi 22 mars 2019

Laravel 5: how to create controller with method name

I am new to Laravel 5 and gone through https://laravel.com/docs/5.8/controllers but could not find any way in which i could create controller using php artisan with a specific method name. I tried below options but none of them work.

php artisan make:controller HomeControler#index logout

and

php artisan make:controller HomeControler/index logout

and

php artisan make:controller HomeController index logout

Is it possible in Laravel 5 to achieve this? If yes, is it also possible to declare more than one function while creating controller using artisan make command?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire