HI, at the beginning of the tutorial, you say "it's work with jetstream..." I tried to run it with jetstream but there is no AUTH file in APP/HTTP/CONTROLLERS, could you please help me! Thank You
You missed something in the protection, when the user choose his role he can just open the console and edit the value of any option in the select element and may be he will send an admin value and the admin route will be accessible for him.
This also works with laravel ui guys if you want the same but using bootstrap instead, that was awesome for my project (sorry for my english if i said something wrong)
I using Laravel 8.35.1 and I did everything like in the movie but my "hasRole" is undefined and I try to fix this but I can't find solution. Can You help me?
Hello and thanks for the video, it really helped me complete my project!! also I study in hungary and I immediately recognized that hungarian english accent lol, thanks again.
Hi Can I ask you a question? I followed your instructions in both this video and the new one about Laravel Jetstream. I have set up vanilla Laravel Jetstream with TEAMS and also with EMAIL VERIFICATION. It is working. If I want to incorporate LaraTrust can I do this on top of vanilla Laravel Jetstream? I.e. I thought that TEAMS would supply a roles and permissions environment but I do not see the tables in my database. I tried spatie but I find your LaraTrust is much simpler. I do not want to break the vanilla Laravel Jetstream I have set up per above. But I do want to set up the ability to allow access to certain pages if admin and deny if user as you explained in this video.
Dear, Thanks for your well explain and a good tutorial. 1 this is more important for a Laravel projects which is moduleing system in Laravel 8, could you please, make a video for how to make a module structure in Laravel 8. Thank you for this tutorial!!
1. In the User.php under "use Illuminate\Notifications\Notifiable;" add "use Laratrust\Traits\LaratrustUserTrait;" 2. Add "use LaratrustUserTrait;" at the beggining of "class User extends Authenticatable" That should be it, if it doesn't work run "composer dump-autoload" and if then still doesn't work then check your database, if you have been changing something directly in "role_user" table (like i did) then you will lose all day for nothing :D
You explain things well, it's a mess finding someone who doesn't assume you already know everything. By the way can you help me with an issue. I want to store a user id and use it in a condition to show and hide a menu. The menu will be included in four different views. I hope there will be more videos from you, you've earned yourself a subscriber and i'm certain it will be more
So, you put logic in your view (if role is user do this, if role is blog do that)? but the model is MVC. Are you sure is the correct way following MVC ? And thanks for the video !
Thank you sir! I am pretty new in laravel but I have to create a system with this technology. I have a question. In my DB I have to create teacher and students, they are different aspects and I have to create more tables which connect the relations between teachers and students. How can I manage these aspects using laratrust?
superb so great sir... i love this video. basically if we want to assign more permission how to handle these type of permissions for spacific user. kindly could you help me?
Can I update the roles_structure after I added it to the database? Like if there's already there. Can I add more? Also, what are those under superadministrator, administrator and user? The users,profile,payments. Can you explain? TIA.
Hi, what if my USER has more or different information than the ADMIN? In your case there is only table, both for user and admin. Is there a way to have a table for the simple users and another one for the admins?
if i want 4 blogwritter with different email and show different information for each in the same blogwritterdash??? please make a tutoral about this....
hello sir , hope you're doing fine . i'm having this problem when i change the attachRole method to $request->role_id , when i try to add a user it gives me 404 not found. I can't find the problem.
No estoy en contra de los indios pero aleluya, por fin alguien que habla normal el ingles y que mejor que un nativo angloparlante... puff creo que el acento indio es un tanto desesperante, en serio
$user->attachRole($request->role_id); already done this then how to switch into the admin dashboard and how to register as a admin please explain am a beginner....
sir I followed your steps but in Dashboardcontroller I am getting error hasRole is undefined . I already included use Illuminate\Support\Facades\Auth . Please help to solve it.
1. In the User.php under "use Illuminate\Notifications\Notifiable;" add "use Laratrust\Traits\LaratrustUserTrait;" 2. Add "use LaratrustUserTrait;" at the beggining of "class User extends Authenticatable" That should be it, if it doesn't work run "composer dump-autoload" and if then still doesn't work then check your database, if you have been changing something directly in "role_user" table (like i did) then you will lose all day for nothing :D
Hi codefisher i have a problem please please help me out! Please See after the login of suppose student . I want to change the css of thatpage . How to do that . I want my custom Header and footer on the page. The dashboard of student, my profile should be Below the header . I'm not getting it how to do that! Please please help me out!. 🙏
hey, thank you very much for this video, I have an error which I dont understand, in 24:55 , my hasRole is not recognized and gives me error. Could anyone help?
HI, at the beginning of the tutorial, you say "it's work with jetstream..." I tried to run it with jetstream but there is no AUTH file in APP/HTTP/CONTROLLERS, could you please help me! Thank You
@@CodeFisher Thank you, but the small thing you forget App/Actions/Fortify/CreateNewUser.php. ;-)
@@CodeFisher can this concept apply to laravel vue js (I'm still new to laravel )
@@CodeFisher thanks a lot.
while using jetstream, how can I attach the roles? It does not let me use the `Request $request` variable in the CreateNewUser.php file
@@subodhpoudel6116 just paste this
user= User::create([
'name' => $input['name'],
'email' => $input['email'],
'password' => Hash::make($input['password']),
]);
$user->attachRole($input['role_id']);
Your explaination is good because you assume the viewer is a beginner, worth to watch and like.
A very good tutorial. I finally understood how multiuser works in Laravel. I'm a beginner.
You missed something in the protection, when the user choose his role he can just open the console and edit the value of any option in the select element and may be he will send an admin value and the admin route will be accessible for him.
Wow, thanks so much!! This is just that I needed, I spended a lot of time looking for how to implement that feature in my new site.
sir thank you so much its very amazing and helpful i followed you step by step and impress my manger
Amazing tutorial, was very helpful to me.
Thanks.
Excellent
Merci, ça marche. Après avoir longtemps cherché, je suis tombé dessus et ça m'a vraiment aidé. Thank you !!!
Bonjour comment vous allez?
J'ai suivi exactement ce qu'il a fait mais j'ai un problème avec la methode 'hasRole'. On me dit que ce n'est pas défini
Svp aidé moi
Pretty good video on this topic. I successfully completed it with no problems.
How? I am having problems with the hasRole method and I cannot define the route it gives me an error
That is awesome. Very clear tutorial on multiAuth
This also works with laravel ui guys if you want the same but using bootstrap instead, that was awesome for my project (sorry for my english if i said something wrong)
very very very very very very very very very very very very very very very THANK YOU
This video feels me professional. Thank you
great tutorial!
Adequate and sufficient explanation. ❤️
mmm
Very good and usful tutorial. i am proud my child
Thanks for sharing this package
I using Laravel 8.35.1 and I did everything like in the movie
but my "hasRole" is undefined and I try to fix this but I can't find solution. Can You help me?
Thank you for this, although I have been coding this manually; I'll try this out.
please can you share how you code this manually!
greate job
Hello and thanks for the video, it really helped me complete my project!! also I study in hungary and I immediately recognized that hungarian english accent lol, thanks again.
Thanks for your video
senk you so mats ,besto frendo
Thank you sir
Hi Can I ask you a question? I followed your instructions in both this video and the new one about Laravel Jetstream. I have set up vanilla Laravel Jetstream with TEAMS and also with EMAIL VERIFICATION. It is working. If I want to incorporate LaraTrust can I do this on top of vanilla Laravel Jetstream? I.e. I thought that TEAMS would supply a roles and permissions environment but I do not see the tables in my database. I tried spatie but I find your LaraTrust is much simpler. I do not want to break the vanilla Laravel Jetstream I have set up per above. But I do want to set up the ability to allow access to certain pages if admin and deny if user as you explained in this video.
thank you for tutorials, next time make tutorial CRUD with multi auth laravel 8
I have prblm in method hasRole, it is always undefinded !!
Any crud solution in your tutorial?
Dear,
Thanks for your well explain and a good tutorial.
1 this is more important for a Laravel projects which is moduleing system in Laravel 8, could you please, make a video for how to make a module structure in Laravel 8.
Thank you for this tutorial!!
Hello, Mr @Code Fisher, I create a new user in the " jetstream " project they will not add any enters in the "role_user" table.
THANKS SO MUCH FOR THIS TUTORIAL? AND WHAT DO WE DO IF WE WANT THE ADMIN TO APPROVE USERS?
Maybe my answer late , i think you can use status when user registered. Then admin will be approve/change status to approved
Thank you !! It's help me a lot...
HELLO!
in the dashbordController you use "hasRole"
i do the same but i have a problem ??
Undefined method 'hasRole'.intelephense(1013)
1. In the User.php under "use Illuminate\Notifications\Notifiable;" add "use Laratrust\Traits\LaratrustUserTrait;"
2. Add "use LaratrustUserTrait;" at the beggining of "class User extends Authenticatable"
That should be it, if it doesn't work run "composer dump-autoload" and if then still doesn't work then check your database, if you have been changing something directly in "role_user" table (like i did) then you will lose all day for nothing :D
@@martisuper7963 And so we shouldn't register a user before using the hasRole method?
@@martisuper7963 i follow your instructions but it doesn't work
@@martisuper7963 oh come on, you are great, thank you
amazing content.
please upload next video to manage permissions from admin panel kindly
I will upload an updated version soon.
Well explained. Thank you for this tutorial!!!
Hi , great video but is it possible you can do a version with laravel 8 with jetstream+ livewire ?
You explain things well, it's a mess finding someone who doesn't assume you already know everything. By the way can you help me with an issue. I want to store a user id and use it in a condition to show and hide a menu. The menu will be included in four different views. I hope there will be more videos from you, you've earned yourself a subscriber and i'm certain it will be more
So, you put logic in your view (if role is user do this, if role is blog do that)? but the model is MVC. Are you sure is the correct way following MVC ? And thanks for the video !
Such a good tutorial!! Thank you :)
Thank you sir! I am pretty new in laravel but I have to create a system with this technology.
I have a question. In my DB I have to create teacher and students, they are different aspects and I have to create more tables which connect the relations between teachers and students. How can I manage these aspects using laratrust?
Good work I was able to grab the concept I needed, but too many adverts, can't follow for even a minute.
HasRole is undefined in vscode , pls help me
Good job, thank you very much
Is it possible to use Laratrust with bootstrap auth system?
Amazing tutorial, very explicit. thanks a lot for this video
superb so great sir... i love this video. basically if we want to assign more permission how to handle these type of permissions for spacific user. kindly could you help me?
at 20:01, where did u get the code for //auth route for both in web.php?
Very good explanation. Good teaching. I have one question. Can i install Admin LTE for this project ?
Thank you.
hello have you been able to integrate adminlte and laratrust authentication into laravel 8? If so, how? help me please
I have error in method hasRole() undefind how i can sole that ?
Add
$user = User::find(Auth::user()->id );
Then write
if ($user->hasRole('user')) {
return view('userdash');
}
Is there gonna be laravel 8 sanctum backend with vue js frontend tutorial video anytime soon?
I do not have the RegisteredUserController at 13:19 ? I am using laravel vue
valuable video
What if you also want to put the My profile on the blog page?
how can you send user back on login page with exception (You don't have permission) if he didn't access of web?
Can I update the roles_structure after I added it to the database? Like if there's already there. Can I add more?
Also, what are those under superadministrator, administrator and user? The users,profile,payments. Can you explain? TIA.
Thank You So Much🤗
How to register without dropdown and using custom routes for admin and user ? could you please help me
Hi, what if my USER has more or different information than the ADMIN? In your case there is only table, both for user and admin.
Is there a way to have a table for the simple users and another one for the admins?
Nice video help me get pass my user control problem
Please make a video of laravel8 and vue js components and redirect from one to other... Without run php artisan serve commamd..
how can i make that with jetstream
helpfull
@9:35: How does the users, payments and profile come handy? Does anyone have an example? How do I just show one user role?
hi there after creating the different views and running the project i get a blank page
for all users
hi, please i need to know how i can give "Register" only for admin
if i want 4 blogwritter with different email and show different information for each in the same blogwritterdash??? please make a tutoral about this....
how to fix sir I can still access the login route even though I'm already login
hello sir , hope you're doing fine .
i'm having this problem when i change the attachRole method to $request->role_id , when i try to add a user it gives me 404 not found. I can't find the problem.
hello thank u for the video
yes
@M J bro should i add the event(new Register($user));
?
I lost the record from role_user table every times i have closed the program and run again. How is to fix it?
Hello, I follow all the steps, but laratrust does not install the seeder that you use.
How I will do it if I don't use a php database just sqlite? where I store the data? I mena in factory? I am new with this laravel thing
hi, I just want to ask why Illuminate\Support\ facades\Auth isn't working?
The dashboard didn't showed up even though I type the exact codes you did. Hope you san help me!
please how do i move my dashboard.blade.php to a different folder?
No estoy en contra de los indios pero aleluya, por fin alguien que habla normal el ingles y que mejor que un nativo angloparlante... puff creo que el acento indio es un tanto desesperante, en serio
the siento bro
how to use laratrust without tailwind...??
hi brother,
i want to update Role.
ex-:(user update blogwriter)
how do this?
great tutorial
Relation is not working please help me..!😭😭😭😭😭😭
thanks this tutorial helps me a lot.., please can you make a tutorial on google authentication from scratch
how to allow registration only to Admin after login as admin?
thank you . btw is it okay / applicable with basic auth ui ?
Yes u just nedd a minor changes on the register controller
this is better
how to add voyager admin panel in this authentication with laratrust? I have created multi auth now how can i add admin panel? please help
$user->attachRole($request->role_id);
already done this
then how to switch into the admin dashboard and how to register as a admin
please explain am a beginner....
how i crud user and copywriter in admin sir ?
Thank you very much, it worked perfectly, I subscribe for more 😁
i did same steps but i cant find auth in my controllers :(
sir I followed your steps but in Dashboardcontroller I am getting error hasRole is undefined . I already included use Illuminate\Support\Facades\Auth . Please help to solve it.
same error did you fix it ???
I solved that make for all in Hindi Video
1. In the User.php under "use Illuminate\Notifications\Notifiable;" add "use Laratrust\Traits\LaratrustUserTrait;"
2. Add "use LaratrustUserTrait;" at the beggining of "class User extends Authenticatable"
That should be it, if it doesn't work run "composer dump-autoload" and if then still doesn't work then check your database, if you have been changing something directly in "role_user" table (like i did) then you will lose all day for nothing :D
hy sir i want to redirect different url for admin and user..in login time like for admin =admin/dashboard and user for user/dashboard
how to write to and read from database please
how do i create a user from admin panel
please how can i use it on jetstream?
hi i have an error Call to undefined method App\Models\User::attachRole()...can u help me?
@@CodeFisher no
Hi, i got an undefined error when using hasRole method…need help
Add
$user = User::find(Auth::user()->id );
Then write
if ($user->hasRole('user')) {
return view('userdash');
}
Hi codefisher i have a problem please please help me out! Please
See after the login of suppose student . I want to change the css of thatpage . How to do that . I want my custom Header and footer on the page. The dashboard of student, my profile should be Below the header . I'm not getting it how to do that!
Please please help me out!. 🙏
Can i use impersonate user. Login to other user without logout?
hey, thank you very much for this video, I have an error which I dont understand, in 24:55 , my hasRole is not recognized and gives me error. Could anyone help?
i Have the same issue, how to use or call LaratrustRole class properly @Code Fisher ??
Auth::user()->hasRole('user') give me undefined method 'hasRole' .Could anyone help?
@@widaratan2851 i have the same probleme ,were you able to solve it?