1) To create project in laravel we use these following cmd


first we need to install composer and after in xamm/httdoc folder we have to run the command

->composer global require  laravel/installer

and install node js

and copy node js path from c:/program file and node js folder

after that go in window properties and advance setting and add that path in enviromental variable

=> composer create-project --prefer-dist laravel/laravel project name

   =>  Composer create-project laravel/larvel project-name

   => Laravel new project-name

1) How to create table and model at time through cmd

php artisan make:Model Status -m (where Status is model and table name)

1) How to create table in laravel through cmd

=> php artisan make:migration create_employees_table

2) To view a list of all available Artisan commands, you may use the list command: 

=>  php artisan list

3) To make a controller and model at a time

=>   php artisan make:controller transController --resource --model=transaction 

=> php artisan make:model Admin -mc

=> php artisan make:model Admin -mcr (controller, model, table)

4)You should use the php artisan key:generate command to generate this key"

5) Note that if the .env file contains the key but you are still getting an application key error, then run php artisan config:cache to clear and reset the config.


=>how migrate a particular table
 php artisan migrate --path=/database/migrations/2021_12_29_085353_create_categories_table.php

=> php artisan make:migration add_columns_to_customer_table (this is used to add some column in existing table)