Create controller and model in laravel 7

Shop Forums Laravel Discussion Create controller and model in laravel 7

Viewing 0 reply threads
  • Author
    Posts
    • #7725
      Projects Plaza
      Participant

      We can create controller with following command

      
      php artisan make:controller ControllerName
      

      With Resource

      
      php artisan make:controller ControllerName -r
      

      We can create model with following command.

      
      php artisan make:model ModelName
      

      With migration

      
      php artisan make:model ModelName -m
      
Viewing 0 reply threads
  • You must be logged in to reply to this topic.