Laravel and PHP Artisan

When you install Laravel framework on your Linux or Mac by Composer ; it making the Directory (called : Artisan) and by this directory you can do some amazing things Like the followings : (all commands run in root of the Laravel path)

  • Database Query (interactive) by : #php artisan tinker
  • Migration and Create Tables by : #php artisan make:migrattion user_table –create=’NAME’
  • Make controller by : #php artisan make:controller TestController
  • Make Model by : #php artisan make:model TestModel
  • Use web Server by : #php artisan serve (check https://127.0.0.1:8000 after run this command)

It’s easy to use ! enjoy your programming

Laravel : httpss://laravel.com/docs/5.8/

Iman Tavakoli

Leave a Reply

Your email address will not be published. Required fields are marked *