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

Answers 1
  • Create HomeController using artisan command

    php artisan make:controller HomeController
    
    0

    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