Laravel Filament: Separate Dashboard for User Roles?

  Рет қаралды 33,354

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 72
@KiaBoluki
@KiaBoluki Жыл бұрын
Thank you for your videos. Based on the documentation, you can use Laravel policies to manage this. You can also utilize scopes to restrict user access to different sections of the dashboard.
@devkumarverma7376
@devkumarverma7376 Жыл бұрын
i am your biggest fan sir if i got any problem i saw your videos for solution thank you for solving all my problems
@wadecodez
@wadecodez Жыл бұрын
From what I’ve seen online, Filament is far better than nova. We made the mistake of using Nova as an admin panel for big clients. It starts to fall apart when you have complex relationships and column types. Looks like with filament solves some of that.
@JamesAutoDude
@JamesAutoDude Жыл бұрын
Yeah I've read plenty of forums where everyone who has switched to Filament from Nova were extremely happy they did
@Mohamadkhalaf
@Mohamadkhalaf Жыл бұрын
i am wonder if i can filter table by user id. for example i need user id = 3 show only postes created by user id = 3 ?
@SamuelRakaYustianto
@SamuelRakaYustianto 2 ай бұрын
so, i cant do like i want to have some role, like if the role was admin will goes to admin dashboard which is default pages, and if its not will go to a landing page or something?
@LaravelDaily
@LaravelDaily 2 ай бұрын
You can. But it depends on the structure of your dashboard and landing page, so there's no ready-made solution, you would have to write some custom code.
@tgames3397
@tgames3397 Жыл бұрын
Can i use filament for frontend pages outside of the dashboard ? if so how
@LaravelDaily
@LaravelDaily Жыл бұрын
Filament is for admin area. Not sure WHY you would need to use it for front-end area.
@tgames3397
@tgames3397 Жыл бұрын
@@LaravelDaily just to have the same design on admin panel and frontend pages but it's not a big deal i can try to mimic the style with tailwindcss
@pokemoon4012
@pokemoon4012 8 ай бұрын
How can i implement canView() function if i am using spatie laravel permission?
@HindAALOUCH-u7x
@HindAALOUCH-u7x 3 ай бұрын
Hello Povilas, thank you for the video. I need to know if you did move the filament configuration from the "AdminPanelProvider" to the published filament config file?
@LaravelDaily
@LaravelDaily 3 ай бұрын
That video is very old, from what I remember it was for Filament 2 which had different logic.
@HindAALOUCH-u7x
@HindAALOUCH-u7x 3 ай бұрын
@@LaravelDaily mmmmmm yes, I noticed it's filament v 2. So if we want to use an alternative dashboard and not the original one, so we have only to comment it in the "AdminPanelProvider" and then the new dashboard page will be applied? Thank you.
@LaravelDaily
@LaravelDaily 3 ай бұрын
Should be, yes, search google for my video on multiple panels for filament 3
@HindAALOUCH-u7x
@HindAALOUCH-u7x 3 ай бұрын
@@LaravelDaily Thank you for the answer. I saw your video it's interesting and I will wait your full video that you did for this course "Filament 3 From Scratch: Practical Course".
@paschalokafor9043
@paschalokafor9043 10 ай бұрын
How do i prevent an ordinary user from logging into admin dashboard?
@asov3x
@asov3x Жыл бұрын
just finished your course about filament. i have a question. how to create custom page? like 1 page only for "setting". only for change the website title, phone number, or email. tried to read the doc, but still confusing
@krekas
@krekas Жыл бұрын
What's confusing? It's just a livewire component
@asov3x
@asov3x Жыл бұрын
@@krekas where i should put the livewire code? in app/filament/page ?
@krekas
@krekas Жыл бұрын
@Asov 3x where else would you put it? Sorry, but it's a weird question. Also, better try, if getting errors go to official filament discord and ask question, show the code with error.
@darshanbhandary
@darshanbhandary 5 ай бұрын
I learnt to use filament a month ago, I Have a doubt How can we implement breeze auth with filament admin auth as in There's a field named 'is_admin' in the user model now if the user is 'is_admin' only then the user can acess '/admin' of filament else he cannot access the filament panel routes.
@LaravelDaily
@LaravelDaily 5 ай бұрын
You then have two route pages: regular Laravel routes, and then in Filament you implement User model method canAccessPanel() with return is_admin true
@roberttrivino4484
@roberttrivino4484 Жыл бұрын
Good morning. Can you please share the repository for the project2 sample you mention in the video? I did a search online but cant find it. Thanks For your help
@LaravelDaily
@LaravelDaily Жыл бұрын
I don't have a repository, it was just an experiment project
@nikolaWd
@nikolaWd Жыл бұрын
Great video, Thanks! I have a question, is it possible to create a laravel project where we will have one administrator and for example 1000 users who will use the same application but each user has his own database. I started to read doc Tenancy for Laravel but I think that is big challenge for laravel? Could you please give me some advice, and what do you think about that?
@tgames3397
@tgames3397 Жыл бұрын
i am currently working on a project with filament and one issue that faced me was trying to validate a combination of two columns $table->unique(['user_id', 'year_id']) how to do that in filament ? i did it in a mutateStateBeforeSave() and if it's not unique i send back a notification but i think it's not a best practice is there is cleaner way or something i am missing 🤔
@LaravelDaily
@LaravelDaily Жыл бұрын
I think it's ok practice, I would probably do the same. Or custom validation rule. Maybe ask on their github/discord, maybe they have something?
@FririkurEllefsen
@FririkurEllefsen Жыл бұрын
I have multiple dashboards without using filament or anything, I just use roles. @role("admin") in views. @extends('layouts.app-master-backend') @role("firma") @include('dashboards.firma') @endrole @role("cv") @include('dashboards.kandidat') @endrole @role("admin") @include('dashboards.admin') @endrole @role("editor") @include('dashboards.editor') @endrole
@fftfaisal
@fftfaisal Жыл бұрын
Alongside Livewire/fillament , inertia vue is popular, If you create an video about create different dashboard using laravel, vue inertia js would be great. thanks
@giacomogaravaglia6742
@giacomogaravaglia6742 Жыл бұрын
didn't dig in the code, but i hope that "canView" method will not fire the "getCards" in order to avoid querying the database, not just a visibility option. Anyway another great video, thanks!
@JamesAutoDude
@JamesAutoDude Жыл бұрын
I wonder how we can do this in Filament 3 with the new multiple panels setup
@LaravelDaily
@LaravelDaily Жыл бұрын
I have this video about it: kzbin.info/www/bejne/nXvElKWuoJypaqc
@sabinmagar4152
@sabinmagar4152 Жыл бұрын
I want to disabled the default widget dashboard of filament. I have seen documentation but it's not working. What to do please suggest?
@LaravelDaily
@LaravelDaily Жыл бұрын
What exactly have you done that is not working? All you need is empty the widgets() array in panel provider.
@sabinmagar4152
@sabinmagar4152 Жыл бұрын
@@LaravelDaily thanks
@Mr.null7960
@Mr.null7960 7 ай бұрын
Hello, I have a question, I hope you can help me: How can I present only the data associated with the user? For example, if a user belongs to a department, only records related to the department to which the user belongs will appear.
@LaravelDaily
@LaravelDaily 7 ай бұрын
Hard to answer in a KZbin comment, without specifically trying where ans what you want to present that data.
@Mr.null7960
@Mr.null7960 7 ай бұрын
@@LaravelDaily I'm sorry I don't explain this well using a Filament Resource in which a table with data is shown, and the options to create, edit, delete. What I want to do is that when a user logs in the table only loads those records that the user has created.
@LaravelDaily
@LaravelDaily 7 ай бұрын
You can use Global Scopes for this: filamentphp.com/docs/3.x/panels/tenancy#simple-one-to-many-tenancy
@Mr.null7960
@Mr.null7960 7 ай бұрын
@@LaravelDaily Thank you so much
@nilanjanchakraborty2694
@nilanjanchakraborty2694 Жыл бұрын
In build packages are really great. But when comes unaccepted requirements then it's so difficult to solve them
@jorgr9323
@jorgr9323 3 ай бұрын
Is it possible to creat a master-detail in Filament?
@LaravelDaily
@LaravelDaily 3 ай бұрын
Yeah, we have an example of invoice editor, should be similar to what you're looking for? filamentexamples.com/project/invoice-editor-items
@michaelmagero5386
@michaelmagero5386 Жыл бұрын
would going for multi-tenancy to achieve this for say 1000 users be an overkill?
@LaravelDaily
@LaravelDaily Жыл бұрын
You never know until you try
@michaelmagero5386
@michaelmagero5386 Жыл бұрын
@@LaravelDaily Agreed will put that to test
@mosco225
@mosco225 Жыл бұрын
Hello mister. How can i upload video with filament ? 😢
@LaravelDaily
@LaravelDaily Жыл бұрын
I don't think filament has a specific video field. How is it different from general file upload?
@mosco225
@mosco225 Жыл бұрын
@@LaravelDaily i don’t say it defferent but when i upload file after loading it failed automaticaly. And i can’t use imageColumn to show video what i have in my database. FileColumn not exist Also. Sorry for my english. I’m frensh speaker 😁
@mosco225
@mosco225 Жыл бұрын
@@LaravelDaily can you Make a tutorial for this part please I want to use it on my fitness app
@LaravelDaily
@LaravelDaily Жыл бұрын
I think I need to create a tutorial about video file uploads in general, yes. But can do it only in a few weeks.
@laluheriaguswandi3241
@laluheriaguswandi3241 Жыл бұрын
How to show or preview pdf file ?
@zainamin43
@zainamin43 Жыл бұрын
Thank you sir ❤❤❤
@hindledra2965
@hindledra2965 Жыл бұрын
Is this doable for resources, or it has to be a widget? Thank you
@LaravelDaily
@LaravelDaily Жыл бұрын
In Filament, it is now done by multiple panels.
@hindledra2965
@hindledra2965 Жыл бұрын
I'm using V2, does that make a difference?@@LaravelDaily
@LaravelDaily
@LaravelDaily Жыл бұрын
Yes v2 is totally different for that case.
@gdogmalone
@gdogmalone Жыл бұрын
It’s like you read my mind some days. I was thinking about how to do this exact thing as I went to bed then in the morning you deliver! 🫶
@LaravelDaily
@LaravelDaily Жыл бұрын
With 120k subscribers and daily videos, there's a chance I will hit something like that sometimes :)
@fantastique
@fantastique Жыл бұрын
@@LaravelDaily You do it all the time for me, thank you!
@classicgames2688
@classicgames2688 Жыл бұрын
hello sir , can you please make us a video about laravel 10 and php voyager ? I need to know asap is it doable because it didn't work with me and thank you
@LaravelDaily
@LaravelDaily Жыл бұрын
I don't use voyager, sorry
@classicgames2688
@classicgames2688 Жыл бұрын
​@@LaravelDailyshould i use filament instead ?
@LaravelDaily
@LaravelDaily Жыл бұрын
All tools are good if you know how to use them. So it's a personal preference.
@classicgames2688
@classicgames2688 Жыл бұрын
@@LaravelDaily thank you very much !! Well appreciated
@Sunsonar
@Sunsonar Жыл бұрын
Return null 😂 Robert Martin is 😮😮😮
@development2301
@development2301 Жыл бұрын
Thank you
@innocentjosiahpatrick8635
@innocentjosiahpatrick8635 Жыл бұрын
Thanks
@christmex4540
@christmex4540 Жыл бұрын
in V3 we can have many panels 🤫🤫
@LaravelDaily
@LaravelDaily Жыл бұрын
Yes, video about exactly that is coming in a few days.
@christmex4540
@christmex4540 Жыл бұрын
@@LaravelDaily Cant wait for that 🔥
Laravel Filament Shield Plugin - Role and Permission
10:28
Tony Xhepa
Рет қаралды 17 М.
Laravel Authentication Tutorial #1 - Intro & Setup
9:48
Net Ninja
Рет қаралды 2,8 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Inertia 2.0: It's like Next but better (and you can use React!)
19:02
Theo - t3․gg
Рет қаралды 56 М.
Laravel 11 Filament Bookstore
15:43
Alexandru Axentioi
Рет қаралды 1,7 М.
Laravel CRUD: 15+ Questions to Solve
6:57
Laravel Daily
Рет қаралды 3,4 М.
4 Problems with Eloquent Soft Deletes (and Two Alternatives)
9:05
Laravel Daily
Рет қаралды 14 М.
Should You Use a Notification or a Mailable?
12:48
Laravel
Рет қаралды 13 М.
Laravel Filament Shield Plugin in multiple panels
20:27
Tony Xhepa
Рет қаралды 9 М.
The Laravel Ecosystem - Livewire 🐙
7:07
Laravel
Рет қаралды 13 М.
The Biggest Mistake Intermediate React Developers Make
18:32
Cosden Solutions
Рет қаралды 40 М.
Wanna Start with Filament? Quick 5-Minute Demo.
7:50
Laravel Daily
Рет қаралды 16 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН