Billi π»
FFilament
β’Created by Billi π» on 12/15/2023 in #ββhelp
Custom Login Page
Sorry for another dumb question, I just am very new to PHP Laravel Development and I found Filament to be really convenient but just need to do a little bit of extra steps.
I want to make a custom login page where half of the page is basically an image and the right half is the form
this is my code but it doesnt seem to work
this is the html code placed in Resources > Views > Filamenet > Pages > Auth > login.blade.php
and this is my login class
9 replies
FFilament
β’Created by Billi π» on 12/13/2023 in #ββhelp
Pass the value of navigationLabel to create page
So, I have a Students table and it has a field called gametype, which is basically hidden from the user, its in my SQL Table only.
What I have is that multiple types of sports and I am saving their data in the same sql table, so whenever I want to show players in Badminton, I just run a condition and show student with gametype Badminton, so what I want to do is that when I create a record from Badminton resource, I want the create page to know that I am coming from the Badminton page so the value of gametype should be Badminton etc
Even better if I can keep that hidden but if I need to put that value in the form builder to have it save in the database, I will just use a disabled input field for it
39 replies
FFilament
β’Created by Billi π» on 12/9/2023 in #ββhelp
How to Authenticate User based on their Status, and also hide few Resource Pages based on the Role
Sorry if this has already been asked but I couldn't find it, I want to basically whenever someone is trying to login into the dashboard, I want to also check if the user being logged in has their Status='Approved' or not in the SQL Table, I just have the base authentication page automatically made so I am not sure where to edit it, and also it would be great if it could also show an error saying the user is not approved.
and also, I have some pages like Users, Products etc that I only want to show for the admin and I have a column called 'role' in my database and there are two types, Admin and User
Thank you!
28 replies
FFilament
β’Created by Billi π» on 12/7/2023 in #ββhelp
Show Users with role as User only
So I made a default User and I just added a few users, and my table in Database has a field called role in it and I only want to show the users that have that role field as User, I am not sure how I would do it.
Basically is there a way to run this query in Filament
"SELECT * FROM users WHERE role='User'"
11 replies