https://github.com/spatie/laravel-permission
1. 권한과 역할 설치
https://docs.spatie.be/laravel-permission/v3/installation-laravel/
2. php artisan migrate
3. composer require laravel/ui "^1.2"
4. php artisan ui vue --auth
5. resources/js/app.js
require('./bootstrap');
window.Vue = require('vue');
import Vuetify from 'vuetify'
import VueRouter from 'vue-router'
Vue.use(Vuetify)
Vue.use(VueRouter)
import 'vuetify/dist/vuetify.min.css'
6. resources/views/layouts/app.blade.php (아이콘,폰트)
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
7. web.php
Route::any('/admin/{any?}', 'AdminController@index')->where('any', '.*')->middleware('auth');