Laravel Commands

 1. To install New Project in the root directory of Xampp i.e htdocs

composer create-project --prefer-dist laravel/laravel laraone
("laraone" is the name of the Project Folder)

2. To Serve/run the project

php artisan serve

3. To Migrate Tables to Database

php artisan migrate

4. To Make a New Controller

php artisan make:controller Country/CountryController
(New Folder "Country" is created inside app/Http/Controllers and "CountryController" is the name of the controller inside "Country" Folder)

5. To Make a New Model

php artisan make:model Models/CountryModel
(New Folder "Models" is created inside app/Http and "CountryModel" is the name of the model inside "Models" Folder)

Comments

Popular posts from this blog

Image Upload PHP Core or OOPs

Xampp Customization