Marcel
Marcel
FFilament
Created by RawaN on 8/18/2024 in #❓┊help
how to set the widget to full for each widget in custom Dashbaord
Try adding this to your dashboard:
public function getColumns(): int | string | array
{
return 1;
}
public function getColumns(): int | string | array
{
return 1;
}
The default columns is 2 for the dashboard. Reference: https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-widgets-grid
5 replies
FFilament
Created by atabegruslan on 8/1/2024 in #❓┊help
Custom titles or warning banners in admin dashboard
Try using a render hook (https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks). Make a view called something like 'banner'.
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Contracts\View\View;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('banner'),
);
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Contracts\View\View;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('banner'),
);
8 replies
FFilament
Created by vahnmarty on 8/1/2024 in #❓┊help
How to access Model $record when using ->visible() or ->hidden()?
Try using Get
->visible(fn (Get $get): bool => $get('is_company'))
->visible(fn (Get $get): bool => $get('is_company'))
Source: https://filamentphp.com/docs/3.x/forms/advanced#conditionally-hiding-a-field
12 replies
FFilament
Created by Marcel on 7/3/2024 in #❓┊help
File upload file from external file url
3 replies
FFilament
Created by Marcel on 7/3/2024 in #❓┊help
File upload file from external file url
3 replies