- Clone the repository:
git clone git@github.com:boolfalse/laravel-boilerplate.git
cd laravel-boilerplate- Install dependencies:
composer install
npm install
npm run dev- Create a database (sample for MySQL below):
mysql -u <USER> -p
CREATE DATABASE laravel_boilerplate;
CREATE USER 'laravel_boilerplate'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL PRIVILEGES ON laravel_boilerplate.* TO 'laravel_boilerplate'@'localhost';
FLUSH PRIVILEGES;- [OPTIONAL] Laravel resources (files/folders) ownerships/permissions:
# one-time command for the PC:
sudo usermod -a -G www-data $USER
# setup ownerships/permissions
sudo chown -R $USER:www-data storage/ bootstrap/cache/
sudo chgrp -R www-data storage bootstrap/cache/
sudo chmod -R ug+rwx storage bootstrap/cache/
- Set the credentials in
.envfile (copy.env.exampleto.envand edit it).
php artisan key:generate
php artisan optimize- Run migrations and seeders:
php artisan migrate:fresh --seed- Author: BoolFalse