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.exampleand save it as.env, or just runcp .env.example .env - Change your database credentials in the
.envfile - 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:installto setup Passport (OAuth2)php artisan storage:linkto create a symbolic link from the public folder to resources where the profile pictures are uploaded.npm installto install Laravel mix and all npm dependencies- Open
/resources/assets/js/admin/env.jsand changeclient_secretto value that is stored inoauth_clientstable in thesecretcolumn under the ID 2 - And now run
npm run hotto run the app with hot reload enabled - Finally goto /admin and login with
admin@mail.com / password