This project created with Laravel 9.5.1
- Clone git repository.
- Open terminal in destination path root.
- Install composer dependencies:
composer install
- Make copy of
.env.example
to.env
file:
cp .env.example .env
- Set the key that Laravel will use when doing encryption:
php artisan key:generate
- Link your public storage folder:
php artisan storage:link
- Set up database credentials, replace next
.env
values:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
- Run the migrations:
php artisan migrate
- Run NPM build:
npm install
npm run prod
- Make production-optimize things:
php artisan view:cache
DO NOT run route:cache because routes contains dynamic calculations (LocaleManager::routePrefixFromRequest()
in routes/web.php
)!!!
composer update -W
npm audit fix