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 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"
0 Comments