Wrax
Wrax
FFilament
Created by Chris Arter on 12/17/2024 in #❓┊help
Stumped on file handling files with Forms + Spatie Media on Custom Page
Did you give the form access to the model?
use App\Models\Post;
use Filament\Forms\Form;

public Post $post;

public function form(Form $form): Form
{
return $form
->schema([
// ...
])
->statePath('data')
->model($this->post);
}
use App\Models\Post;
use Filament\Forms\Form;

public Post $post;

public function form(Form $form): Form
{
return $form
->schema([
// ...
])
->statePath('data')
->model($this->post);
}
https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#setting-a-form-model
4 replies
FFilament
Created by Prosp30 on 2/22/2025 in #❓┊help
Hide a line in navigation group
I think I'd personally use a custom svg. Something like this might work
<svg aria-hidden="true" data-slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<circle fill="currentColor" cx="8" cy="8" r="8" />
</svg>
<svg aria-hidden="true" data-slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<circle fill="currentColor" cx="8" cy="8" r="8" />
</svg>
8 replies
FFilament
Created by Prosp30 on 2/22/2025 in #❓┊help
Hide a line in navigation group
Alternatively you could use a custom svg icon and create simple circle/bullet svg (or any other shape of your preference). https://filamentphp.com/docs/3.x/support/icons#using-custom-svgs-as-icons
8 replies
FFilament
Created by Prosp30 on 2/22/2025 in #❓┊help
Hide a line in navigation group
The line element is the first child of a parent element with fi-sidebar-item-grouped-border so you should be able to safely target it with something like
.fi-sidebar-item-grouped-border > div:first-child {
@apply hidden;
}
.fi-sidebar-item-grouped-border > div:first-child {
@apply hidden;
}
Adding this css to your theme.css file would apply the tailwindcss hidden class to the first child div of an element with fi-sidebar-item-grouped-border
8 replies
FFilament
Created by Mikail on 2/21/2025 in #❓┊help
How to keep footer hook stuck at the bottom
You shouldn't need a plugin for this. I think maybe some styles are conflicting. Open inspector in the browser and check what's going on with the style classes on these elements. Something must be overriding h-full on <main>. You might have a rouge style interfering via .fi-main or similar. Inspector will reveal all 😄
10 replies
FFilament
Created by Mikail on 2/21/2025 in #❓┊help
How to keep footer hook stuck at the bottom
You probably just want to use FOOTER , and optionally scope it. Using PAGE_FOOTER_WIDGETS_AFTER or PAGE_FOOTER_WIDGETS_BEFORE hooks will align them how you've shown.
FilamentView::registerRenderHook(
PanelsRenderHook::FOOTER,
fn (): View => view('your-custom-footer-view'),
scopes: Dashboard::class,
);
FilamentView::registerRenderHook(
PanelsRenderHook::FOOTER,
fn (): View => view('your-custom-footer-view'),
scopes: Dashboard::class,
);
A helpful resource to visualise it: https://filamentexamples.com/tutorial/render-hooks-cheat-sheet
10 replies
FFilament
Created by Mikail on 2/21/2025 in #❓┊help
How to keep footer hook stuck at the bottom
Show how you have registered the render hook
10 replies
FFilament
Created by Yor on 2/20/2025 in #❓┊help
Navigation for multi role panel
https://laravel.com/docs/11.x/authorization#policy-filters
use App\Models\User;

/**
* Perform pre-authorization checks.
*/
public function before(User $user, string $ability): bool|null
{
if ($user->isSuperAdmin()) {
return true;
}

return null;
}
use App\Models\User;

/**
* Perform pre-authorization checks.
*/
public function before(User $user, string $ability): bool|null
{
if ($user->isSuperAdmin()) {
return true;
}

return null;
}
10 replies
FFilament
Created by Firebat on 2/20/2025 in #❓┊help
favicon not being displayed
No description
11 replies
FFilament
Created by Firebat on 2/20/2025 in #❓┊help
favicon not being displayed
first try php artisan optimize
11 replies
FFilament
Created by Stricks on 10/5/2024 in #❓┊help
Making a Form Toggle read-only
Toggle does have disabled() iirc
4 replies
FFilament
Created by TMS on 10/5/2024 in #❓┊help
Using FilamentPHP to create Landing Pages/Websites
You probably just want Livewire / Blade combo for a simple landing page.
6 replies
FFilament
Created by Danny on 9/27/2024 in #❓┊help
Dropdown items Sidebar
5 replies
FFilament
Created by Hakeem on 9/25/2024 in #❓┊help
Not an error but a question for an issue
Make a filament page in the panel for your custom logic. https://filamentphp.com/docs/3.x/panels/pages#overview
4 replies
FFilament
Created by Rolland on 9/24/2024 in #❓┊help
Grid not applying to Section
Have you tried defining ->columnSpan(1) on the Grid's child fields? Assuming your $grid is equal to 4. You might also be better off passing an array so you can explicitly set responsive breakpoints & override the 'default'
`use Filament\Infolists\Components\Grid;

Grid::make([
'default' => 1,
'sm' => 2,
'md' => 3,
'lg' => 4,
'xl' => 6,
'2xl' => 8,
])
->schema([
// ...
])
`use Filament\Infolists\Components\Grid;

Grid::make([
'default' => 1,
'sm' => 2,
'md' => 3,
'lg' => 4,
'xl' => 6,
'2xl' => 8,
])
->schema([
// ...
])
more: https://filamentphp.com/docs/3.x/infolists/layout/grid#grid-component
5 replies
FFilament
Created by RawaN on 9/23/2024 in #❓┊help
direction of the table filter
Have you tried using form layout components?
*Filament\Forms\Components\Grid * should work inside the form() method
->form([ Filament\Forms\Components\Grid:make([

DatePicker::make('created_from')
->label(__('filters.created_from')),

DatePicker::make('created_until')
->label(__('filters.created_until')),
]),
])
->form([ Filament\Forms\Components\Grid:make([

DatePicker::make('created_from')
->label(__('filters.created_from')),

DatePicker::make('created_until')
->label(__('filters.created_until')),
]),
])
6 replies
FFilament
Created by RawaN on 9/23/2024 in #❓┊help
direction of the table filter
6 replies
FFilament
Created by kalesha on 9/22/2024 in #❓┊help
text input with relation
Try explicitly passing the foreignkey on the hasOne method `public function pricing(): HasOne { return $this- >hasOne(ProductPricing::class, 'pricing_id'); }
5 replies
FFilament
Created by RawaN on 8/29/2024 in #❓┊help
How to use filament component in front-end of website?
It's not clear how you've configured your layout. There is useful information relating to layout setup here: https://filamentphp.com/docs/3.x/notifications/installation#configuring-your-layout Providing more context might help identify your issue
7 replies
FFilament
Created by pocket.racer on 8/29/2024 in #❓┊help
How to do a ranking column in filament table that doesn't change?
I checked and the above works for your use case. Simply add the following as the first column in your table. Tables\Columns\TextColumn::make('rank')->rowIndex(),
6 replies