Clone the project
git clone https://github.com/tarikulIslamNahid/laravel-8-basic-product-crud.git $PROJECT_NAME
Go to the project directory
cd $PROJECT_NAME
Install Composer Dependencies
composer install
Create a copy of your .env file
cp .env.example .env
In the .env file, add database information to allow Laravel to connect to the database
terminal run:
php artisan key:generate
php artisan config:clear
Migrate & Seed the database
php artisan migrate:fresh --seed
Run tinker
php artisan tinker
products::factory()->count(10)->create()
exit
``
Start the server
php artisan serve