Hello I am working on custom user role management ( not using laravel built in implementation ) , i have following tables
1- User 2- Role 3- User_Role
Problem I want to show different layouts according to logged in user on the behalf of current logged in user role.
Here is master layout code
<section id="container" class="" style="">
@include('frontend.header.header')
@include('frontend.sidebar.sidebar')
<div class="admin_right_content">
@section('content')
@show
</div>
</section>
This layout should be changed according to authenticated user. Actually I want to restrict the user for different layouts, please guide me, thanks
Hi there is a nice package which can do all of this. So you are using laravel 5.4
composer require spatie/laravel-permission
Documentation Larave Permissions