Hello @nikhil_lu210
I suggest you to try this article steps
https://hackernoon.com/laravel-multiple-authentication-80daa855322b
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am working on a project where I have created Multi Authentication. Admin, Teacher & Student Panel. by the command of "php artisan make:auth" I have created the student authentication. And then I have duplicate all the files of auth related and customise them into two more authentications... now I wanna show the name of user (Student / Teacher / Admin) in the dashboard... in the student panel Dashboard I wrote "{{ Auth::user()->name }}" and its working... but in the teacher and admin is not working with this code... its showing error like this: "Trying to get property of non-object (View: C:\laragon\www\tManagement\resources\views\layouts\app-teacher.blade.php) (View: C:\laragon\www\tManagement\resources\views\layouts\app-teacher.blade.php)"
What can I do...??
Please or to participate in this conversation.