lundi 4 avril 2016

Display Sidebar and Pages based on the User Role in Laravel 5.1

I am Using the Same Login Box and i am Differentiating the Users after Login using Auth::attempt() function. In my project i have only one Sidebar which Contains all the Menus that are required for my project.

I have Four Login roles namely Admin / Teaching Staff / Non-teaching Staff / Parent.

My doubt is that i need to display only some menus and related Blade(Views) that are inside that Sidebar Menu for different login users.

Screenshot Attachment: Click Here

I dont need to Redirect the Page based on the Login Users i need to alter my display based on Login Attempts.

I have not used any Packages for Authentication i am using only Auth::Login and Auth::attempt() functions.

Can you please provide me with a Solution of how to Get rid of This Error for Me.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire