Laravel Filament Shield Plugin in multiple panels

  Рет қаралды 8,748

Tony Xhepa

Tony Xhepa

Күн бұрын

Пікірлер
@tonyxhepaofficial
@tonyxhepaofficial 8 ай бұрын
Laravel Filament Shield Plugin in multiple panels
@allanstuartvelezpena5687
@allanstuartvelezpena5687 8 ай бұрын
Hello, how are you? I'm curious. At the moment I created the version in tenancy but when installing shield it gives me this error. The model [Spatie\Permission\Models\Role] does not have a relationship named [team]. You can change the relationship being used by passing it to the [ownershipRelationship] argument of the [tenant()] method in configuration. You can change the relationship being used per-resource by setting it as the [$tenantOwnershipRelationshipName] static property on the [BezhanSalleh\FilamentShield\Resources\RoleResource] resource class. At the moment I have deleted the implementation. If you know how to solve it, it would be very good help because I am interested in this plugin. @codewithtonyofficial
@HamzaOthmani-l7z
@HamzaOthmani-l7z Ай бұрын
we dont know what we do without you Tony , you really the best and i learned a lot thanks to you and got my first job , peace bro from Tunisia
@tilapotty
@tilapotty 5 ай бұрын
Thank you for your work! One optimisation step at the end of the process: in User.php: public function canAccessPanel(Panel $panel): bool { if($this->hasRole(Utils::getSuperAdminName())) { return true; } else if ($panel->getId() === 'blog') { return $this->hasRole(config('filament-shield.blog_user.name', 'blog_user')); } return false; }
@claytonmmbehi
@claytonmmbehi 4 ай бұрын
Hi. Wonderful tutorial. I have a question. How do I redirect the blog user to the blog panel when they login via the -> /admin/login route. 2. When I log out via the blog panel. It brings error (Route Login not defined). 3. Blog User Roles does not reflect on the blog panel. Kindly help. Thank you.
@tevinmorake8924
@tevinmorake8924 7 ай бұрын
Interesting! Have you tried using shield with support for filaments "Teams" multi-tenancy?
@YacoubCoder
@YacoubCoder 8 ай бұрын
Tony, I followed a tutorial but added more challenges by incorporating multiple panels with different guards, models, and database tables-one for admins and another for users. However, I attempted to make the plugin work for two different authentication models, but it only functions for the admin model, not the user model. Despite my efforts, it's still not working. Could you please create a video demonstrating the steps mentioned above? If you have the time, I'll be eagerly waiting for it. If not, thank you anyway! ❤❤❤❤
@TheoKotey
@TheoKotey 8 ай бұрын
I am using multitenancy in my Filament application. However, I need to create team_admin role where they can create and manage users that belong to their team only. How do I do that?
@MRizkiHabibie
@MRizkiHabibie Ай бұрын
how to redirect to specific panel based on role? example if blog panel access admin panel they'r redirected to blog panel
@arifjagad
@arifjagad 8 ай бұрын
I have created an employee role, how do I prevent him from being able to open the admin page? At least he will be redirected to the /employee page
@ademaf6423
@ademaf6423 3 ай бұрын
I didnt create my project with breeze then how can i add new user ?
@cengizhan597
@cengizhan597 8 ай бұрын
Is there a video of getting Auth tokens with Filament API
@FadhilAzhar-g1i
@FadhilAzhar-g1i 4 ай бұрын
Hello sir, can you help me..? i used filament shield, i have 2 roles ( admin and user), - As admin, when 1 go to the classroom navigation menu, i will get the list data of all classroom (in this case : index' => Pages\inedexClass::route('/') , - As user, go to the classrooms navigation menu, i will direct to my classroom detail based on my Auth user id (in this case : view' => Pages\ViewClass::route('/{classroom id}/view'), - Both admin and user use only 1 navigation classroom Any solution..? thanks before..
@YacoubCoder
@YacoubCoder 8 ай бұрын
Big thanks tony ❤..
@wakathepublic
@wakathepublic 7 ай бұрын
why my code not working ?
@YacoubCoder
@YacoubCoder 8 ай бұрын
🥳🥳🥳🥳🥳🥳🥳
@xenon2106
@xenon2106 8 ай бұрын
lets goo!
@nicolasmenescardi4077
@nicolasmenescardi4077 7 ай бұрын
🙌🙌
@AsadTekFirst
@AsadTekFirst 5 ай бұрын
share the source the code as well
@SEOng-gs7lj
@SEOng-gs7lj 25 күн бұрын
2 should not be considered as multiple.. try adding 5 and access only 1.. gg to be a challenge
Laravel Filament Shield Plugin - Role and Permission
10:28
Tony Xhepa
Рет қаралды 17 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 44 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 51 М.
Filament Shield for Roles and Permissions: Demo Blog
6:33
Filament Daily
Рет қаралды 8 М.
NEW in Filament 3: Multi-Tenancy
12:14
Laravel Daily
Рет қаралды 17 М.
Retro MS-DOS Coding - Recreating the Iconic Award BIOS Screen
18:16
NCOT Technology
Рет қаралды 73 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН