Nibir Ahmed
Nibir Ahmed
FFilament
Created by Nibir Ahmed on 1/15/2024 in #❓┊help
Conditionally hide or disable row
No description
1 replies
FFilament
Created by Nibir Ahmed on 11/18/2023 in #❓┊help
Get relations in modal
I'm showing relations in my view and edit page. But when I comment the get pages then the view and edit opens on modal yes but the relations are not shown below. Can we make them show in the modal?
2 replies
FFilament
Created by Nibir Ahmed on 11/16/2023 in #❓┊help
Guidance about the authorization and role management
Hello guys, I want to know the proper way of developing any app in filament. Started using it, playing around with it and it's fun. But I want to know the best practices. Things I want (Requirements) - I want my app to have an admin and few other roles (which will ultimately have the permissions). So, for that what is the best way. 1. Having few panels or 2. having one panel and then authorizing the resources or something. - Again admin will see all the listing of the models but the users will see only theirs, maybe can or cant edit based on permissions - Also from the admin panel I want to create roles with permissions and the users having that permission will see only those resources (so again in this case should I use multi panels or single? if any how will I do that) - Will shield plugin be useful if I want the above functionality like from one panel I can disable functionality of another panel So overall what is the best way of doing those?
5 replies
FFilament
Created by Nibir Ahmed on 11/13/2023 in #❓┊help
Custom Header Action In Resources
Hello guys, Apology for the silly question. I'm new to filament. I added a resource and I don't want the create button for the resource (Section). The sections are generated by a php code. So I disabled the create method by
public static function canCreate(): bool
{
return false;
}
public static function canCreate(): bool
{
return false;
}
and now I tried to add a custom function to header by adding this code in my resource class
use Filament\Actions\Action;

protected function getHeaderActions(): array
{
return [
Action::make('generate')
->label('Generate')
->url('some url'),
];
}
use Filament\Actions\Action;

protected function getHeaderActions(): array
{
return [
Action::make('generate')
->label('Generate')
->url('some url'),
];
}
just to check if the button is visible But the button is not added to the top
4 replies