Boilerplate for Laravel, Vuejs & AdminLTE project.
The main goal for this project was to create a single page application (SPA) for the administration area with Vuejs and AdminLTE.
If you have a better idea for the setup please let me know :)
- Implemented OAuth2 with token refresh
- Simple project structure divided for admin and front
- AdminLTE split to partials and converted to Vuejs components
- Simple edit profile page with profile picture upload
- Clone or download this repository
git clone https://github.com/vstruhar/laravel-vuejs-adminlte.git
- cd into the project folder and run
composer install
- Copy
.env.example
and save it as.env
, or just runcp .env.example .env
- Change your database credentials in the
.env
file - Then run
php artisan key:generate
php artisan migrate
- Run seeder to create admin user with roles and permissions
php artisan db:seed --class=InitSetupSeeder
php artisan passport:install
to setup Passport (OAuth2)php artisan storage:link
to create a symbolic link from the public folder to resources where the profile pictures are uploaded.npm install
to install Laravel mix and all npm dependencies- Open
/resources/assets/js/admin/env.js
and changeclient_secret
to value that is stored inoauth_clients
table in thesecret
column under the ID 2 - And now run
npm run hot
to run the app with hot reload enabled - Finally goto /admin and login with
[email protected] / password