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.
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.
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)
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
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
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!!
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?
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
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?
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?
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.
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
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.
if i want 4 blogwritter with different email and show different information for each in the same blogwritterdash??? please make a tutoral about this....
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?
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.
$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....
Can anyone guide me that in Laravel 8 after login where credentials passes to check whether the user is authorized or not? i want to check weather it is Admin or User to redirect to their respective page.
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!. 🙏
For who have problem with Vite issues, maybe can try this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NJiD93mEmFw.html change the breeze to 1.9.4 instead of --dev
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