on
02.
02.
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/[email protected]/css/materialdesignicons.min.css " rel = " stylesheet " >
7. web.php
Route :: any ( ' /admin/{any?} ' , ' AdminController@index ' ) -> where ( ' any ' , ' .* ' ) -> middleware ( ' auth ' );
공유하기 글 요소 저작자표시
from http://anko3899.tistory.com/449 by ccl(A) rewrite - 2020-03-31 21:59:46