- Render pre code with highlightjs
- Get data packages from packagist API
Open Terminal, then type command:
Go to project folder :
cd blog-laravel
cp .env.example .envsetup config on .env file
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=blog // yourdatabase, create if not exist
DB_USERNAME=root // user for database by default is root
DB_PASSWORD= // password for database by default is : emptythen
php artisan key:generateType following command :
php artisan migrate
php artisan voyager::installIf you need data dummy, you have type following command:
php artisan voyager::install --with-dummythen
php artisan serveLogin page can be access to: http:localhost:8000/p/kenhyuwa/dashboard
you can change this path. open file on config/voyager.php and change following line:
'prefix' => 'p/kenhyuwa/dashboard',by default user is:
- email: [email protected]
- password: password
If you get an error, open posts tables and on field category_id update row reference by categories tables. Important, you need connect to internet for getting data from packagist API
Give me a star
MIT