Laravel Notes By Ahmed Awan

Step to install Laravel
1) Install Composer
2) Install Laravel with composer cammand
--->>>> composer create-project laravel/laravel example-app
Laravel Installation Link
3) Install the Basic Blade Package
Laravel have starter-kits which can use for install blade, react, Vue package
url ----->>>>> https://laravel.com/docs/9.x/starter-kits
3.1) ------->>>> composer require laravel/breeze --dev
3.2) ------->>>> php artisan breeze:install php artisan breeze:install npm install npm run dev php artisan migrate
To create Migration

php artisan make:migration create_roles_table

To create Migration

php artisan make:migration create_users_table


$table->id(); $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); // active boolean $table->boolean('active')->default(1)->change(); $table->timestamps();
Run the migration
php artisan migrate
Create Model
php artisan make:model Flight php artisan make:controller FlightController --resource

Comments

Popular posts from this blog

PHP Notes