We can create controller and make command using artisan.The syntax for writing command for controller is:
Syntax for writing Controller:
php artisan controller:make ControllerName
Example for writing Controller:
php artisan controller:make UsersController
Syntax and example for making Command in Laravel is:
Syntax for writing Command:
php artisan command:make CommandName
Example for writing Command:
php artisan command:make KarmaCommand
By this way we can make our controller and command using php artisan.
0 Comment(s)