How to create controller in laravel

Updated at 20-Aug-2021, By samar

How to create controller in laravel

In this session, we will try our hand at solving the "How to create controller in laravel".

You can create a controller in laravel using the artisan command. Command for creating controller in laravel is - php artisan make:controller HomeController
  • Create HomeController using artisan command

    php artisan make:controller HomeController
    

    You can controller in laravel using php artisan command. Go to you terminal and run php artisan command to create  a HomeController in laravel

Back to code snippet queries related laravel