Laravel setup after cloning from Github
Posted: 2025/04/04
Currently, I am working on several Laravel Challenge Tests, provided by LaravelDaily, to review my knowledge of Laravel.
For example: https://github.com/LaravelDaily/Test-Eloquent-Relationships
I need to clone the repo to my local computer to edit the code. In order to have laravel projects up and running on local, it requires to perform some extra steps as below
Create .env file
cp .env.example .env
Install project's dependencies
composer update
Generate the application key
php artisan key:generate
Set up the database
php artisan migrate
php artisan db:seed
Serve the application
php artisan serve
DOne