Setup Menus in Admin Panel

  • No products in the cart.

  • LOGIN

Controller

Controllers are containers for methods that contain application logic related to a common domain.

Creating a Controller


Open the command prompt and type the following command to create a controller using the Artisan CLI (Command Line Interface).

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

 

Note:
You can provide <controller-name> with your own. 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 the following directory:

app/Http/Controllers

 

Here you will see some of the codings is already done. You can call the already created controller by the following command:

Route::get(‘base URI’,’[email protected]’);
SEE ALL Add a note
YOU
Add your Comment
 

Advanced Course Search Widget

Popular Courses

Course Categories

© PHPhelp. 2002 - 2018 All rights reserved.
X