Skip to main content

Command Palette

Search for a command to run...

How to set up a Laravel project from Git

Published
1 min read
How to set up a Laravel project from Git
K

Software Developer (Full Stack) with 4 years of experience building scalable web applications across frontend and backend. Focused on performance, security, and clean architecture. Skilled in troubleshooting, agile collaboration, and delivering production-ready solutions. Driven by continuous learning and delivering high-value, user-centric solutions.

First clone the repository

git clone -b <BRANCH_NAME> <REPO_URL> <FOLDER_NAME>

Install required packages

composer install --no-scripts
composer install --optimize-autoloader

If required*

npm install

Change dir permission

sudo chmod 777 -R bootstrap
sudo chmod 777 -R storage

Create .env

mv .env.example .env

Generate new key

php artisan key:generate
php artisan storage:link

Clear cache and optimize

php artisan optimize:clear
php artisan optimize

How to run (local)

php artisan server --port=8000

More from this blog

S

Some Ordinary Developer

10 posts

A not-so-ordinary tech blog