Skip to content

Instantly share code, notes, and snippets.

@iKunalmathur
Created February 1, 2023 04:47
Show Gist options
  • Save iKunalmathur/5dcafa1992f7f44f35223e6256d3880a to your computer and use it in GitHub Desktop.
Save iKunalmathur/5dcafa1992f7f44f35223e6256d3880a to your computer and use it in GitHub Desktop.
## How to setup
Clone repo the repo
```
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 key
```
php artisan key:generate
```
Link storage
```
php artisan storage:link
```
Clear cache and optimize
```
php artisan optimize:clear
```
```
php artisan optimize
```
## How to run (local)
```
php artisan server --port=8000
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment