$ composer install
$ npm install
$ php artisan migrate
- download docker
- clone repo
git clone https://github.com/mtmtkj/okr_laravel.git
- clone laradock inside repo
cd okr_laravel
git submodule add https://github.com/LaraDock/laradock.git
- run docker-compose in laradock folder
cd laradock
docker-compose up -d mysql nginx php-fpm workspace redis
- enter workspace and run composer
docker-compose exec workspace bash
composer install
- modfiy .env file
cp .env.example .env
vi .env
# DB_HOST=127.0.0.1
DB_HOST=mysql
# REDIS_HOST=127.0.0.1
REDIS_HOST=redis
- run artisan
php artisan migrate
-
access localhost: http://localhost in browser
-
you're done!
โป warning if you get the following error:
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
try running:
php artisan key:generate
php artisan config:clear
The Laravel framework is open-sourced software licensed under the MIT license.