MZX
MZX
FFilament
Created by MZX on 2/27/2025 in #❓┊help
How to make create/edit a modal instead of a page?
Thank you buddy
6 replies
FFilament
Created by MZX on 2/7/2025 in #❓┊help
The role isn't being assigned?
Okay found it,
Forms\Components\Select::make('roles')
->relationship(
name: 'roles',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => Auth::user()->hasRole('admin')
? $query->where('name', 'user')
: $query
)
->multiple()
->preload()
->searchable();
Forms\Components\Select::make('roles')
->relationship(
name: 'roles',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => Auth::user()->hasRole('admin')
? $query->where('name', 'user')
: $query
)
->multiple()
->preload()
->searchable();
4 replies
FFilament
Created by MZX on 1/30/2025 in #❓┊help
Set a group as default in a table
Found it
5 replies
FFilament
Created by MZX on 1/30/2025 in #❓┊help
Set a group as default in a table
->defaultGroup('created_at');
5 replies
FFilament
Created by MZX on 1/27/2025 in #❓┊help
How to make a custom column occupy the entire row? (Max Width)
@LeandroFerreira Thank you brother
5 replies
FFilament
Created by MZX on 11/18/2024 in #❓┊help
Anyone implemented SAML in a Filament app?
I hope that's the right approach
9 replies
FFilament
Created by MZX on 11/18/2024 in #❓┊help
Anyone implemented SAML in a Filament app?
Nevermind, I made a custom middleware and used that, and removed the default authenticate class
9 replies
FFilament
Created by MZX on 11/18/2024 in #❓┊help
Anyone implemented SAML in a Filament app?
I have implemented the SAML, I am just stuck on one small part. How do I redirect the user to the saml login route instead of the default filament login page?
9 replies
FFilament
Created by MZX on 11/18/2024 in #❓┊help
Anyone implemented SAML in a Filament app?
Alright, will take a look
9 replies
FFilament
Created by MZX on 11/11/2024 in #❓┊help
Export fails, even though I am exporting the exact same columns from the tables.
Nothing wrong in the code. Just clear cache and job tables.
4 replies
FFilament
Created by MZX on 11/6/2024 in #❓┊help
Format boolean columns in exporter?
Yeah there's some weird bugs with the exporter. Cleaning the cache and jobs table fixes it.
5 replies
FFilament
Created by MZX on 11/7/2024 in #❓┊help
Log search queries?
That's a good approach, will look into it and get back
4 replies
FFilament
Created by MZX on 11/2/2024 in #❓┊help
Database Notifications do not pop up?
Yeah at first I added send() but it would loop over the recipients and the pop ups won't stop so just added the whole code segment outside the loop. It's a little code duplication, but works!
5 replies
FFilament
Created by MZX on 10/14/2024 in #❓┊help
Form not submitting user_id even though when I dd the submission the user_id is present
I fixed it by making the column nullable, and it does populate the value, but i would still like to know why it wasn't working
7 replies
FFilament
Created by MZX on 10/14/2024 in #❓┊help
Form not submitting user_id even though when I dd the submission the user_id is present
This is the error i face SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: researchers.user_id (Connection: sqlite, SQL: insert into "researchers" ("rank", "no_of_research", "updated_at", "created_at") values (Assistant Professor, 45, 2024-10-14 21:59:43, 2024-10-14 21:59:43))
7 replies
FFilament
Created by MZX on 10/14/2024 in #❓┊help
Form not submitting user_id even though when I dd the submission the user_id is present
The relationships have been defined
7 replies
FFilament
Created by MZX on 10/14/2024 in #❓┊help
Form not submitting user_id even though when I dd the submission the user_id is present
and this is the dd result
array:3 [// app\Filament\Resources\ResearcherResource\Pages\CreateResearcher.php:15
"user_id" => "18"
"rank" => "Assistant Professor"
"no_of_research" => "45"
]
array:3 [// app\Filament\Resources\ResearcherResource\Pages\CreateResearcher.php:15
"user_id" => "18"
"rank" => "Assistant Professor"
"no_of_research" => "45"
]
7 replies
FFilament
Created by MZX on 10/13/2024 in #❓┊help
How to change the Resource Title?
Figured it out, its in the ListRecord page, getTitle()
4 replies
FFilament
Created by MZX on 10/11/2024 in #❓┊help
Can't make it 2 columns on small screen
Worked, thanks a lot
6 replies