Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create Creating a Controller ?



How to create Creating a Controller ?..

Answer / sunil kumar

Open the terminal based on the operating system you are using and type the following command to create controller using the Artisan CLI (Command Line Interface).

Syntax : Route::get(‘base URI’,’controller@method’);


Example : php artisan make:controller <controller-name> --plain


It describes above example Replace the <controller-name> with the name of your controller.
This will create a plain constructor as we are passing the argument — plain.
If you don’t want to create a plain constructor, you can simply ignore the argument.
The created constructor can be seen at app/Http/Controllers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is laravel api?

0 Answers  


What is laravel language?

0 Answers  


Explain short notes on Laravel - Artisan Console and commands ?

0 Answers  


What are laravel contract’s?

0 Answers  


How to use update statement in laravel?

0 Answers  


How x-csrf-token is different from csrf tokens?

0 Answers  


Explain how to bind a service container to a service provide?

0 Answers  


What are class traits?

0 Answers  


Where do you locate route files?

0 Answers  


How to use skip() and take() in laravel query?

0 Answers  


How to install mysql on valet?

0 Answers  


What is route model binding?

0 Answers  


Categories