slooffmaster
slooffmaster
FFilament
Created by lodeki on 10/19/2023 in #❓┊help
Page widget showing on dashboard
Workaround is to do something like this in the Widget:
/**
* Determine where the widget should be displayed
*
* @see https://filamentphp.com/docs/3.x/panels/dashboard#conditionally-hiding-widgets
* @return bool
*/
public static function canView(): bool
{
if (Route::currentRouteName() === 'filament.admin.pages.sales-dashboard') {
return true;
}

return false;
}
/**
* Determine where the widget should be displayed
*
* @see https://filamentphp.com/docs/3.x/panels/dashboard#conditionally-hiding-widgets
* @return bool
*/
public static function canView(): bool
{
if (Route::currentRouteName() === 'filament.admin.pages.sales-dashboard') {
return true;
}

return false;
}
32 replies
FFilament
Created by hdaklue on 11/18/2023 in #❓┊help
Pagination Bug
npm run build?
28 replies
FFilament
Created by King Dice on 11/18/2023 in #❓┊help
How to permanently filter table
👍
11 replies
FFilament
Created by King Dice on 11/18/2023 in #❓┊help
How to permanently filter table
👍
11 replies
FFilament
Created by GeRaged | Niklas on 11/17/2023 in #❓┊help
Spatie Roles Permissions
I can only agree; great plugin!
7 replies
FFilament
Created by King Dice on 11/18/2023 in #❓┊help
How to permanently filter table
I actually didn’t dive into this; I found the method in the source of the Table class.
11 replies
FFilament
Created by Nibir Ahmed on 11/16/2023 in #❓┊help
Guidance about the authorization and role management
So far I’ve been using the excellent Shield plugin which uses Spatie Roles and Permissions. Here’s the GitHub repo: https://github.com/bezhanSalleh/filament-shield Works like a charm and very configurable👍
5 replies
FFilament
Created by King Dice on 11/18/2023 in #❓┊help
How to permanently filter table
11 replies
FFilament
Created by King Dice on 11/18/2023 in #❓┊help
How to permanently filter table
Use the ->query() method on the $table instance. Here’s an example:
->query(MyModel::query()->orderBy('time', 'desc')->limit(100))
->query(MyModel::query()->orderBy('time', 'desc')->limit(100))
11 replies
FFilament
Created by slooffmaster on 10/20/2023 in #❓┊help
use RelationManager in InfoList modal?
Ik actually meant to say RelationManager table.
2 replies