My Hobbies .Laravel + VueJS project for Dev&Go
git clone https://github.com/lipingZLP/my-hobbies.git
cd my-hobbies
cp .env.example .env
composer install
php artisan key:generate
Create a myhobbies
database and run Laravel migrations:
CREATE DATABASE IF NOT EXISTS `myhobbies`
php artisan migrate
Modify the my-hobbies/.env
file and set the following:
APP_NAME="My Hobbies"
DB_HOST=<mysql_server_address>
DB_DATABASE=myhobbies
DB_USERNAME=<mysql_username_eg_root>
DB_PASSWORD=<mysql_password_eg_root>
cd ..
npm install && npm run dev
While developing, you can use:
npm run watch
To have access to the admin page, you must:
users
, column: is_admin
)UPDATE `users` SET is_admin = TRUE WHERE id = ?;
Author: lipingZLP
Source Code: https://github.com/lipingZLP/my-hobbies
#laravel #vuejs #vue #javascript