realtebo
realtebo
FFilament
Created by realtebo on 1/18/2024 in #❓┊help
how to center a column? or align to right?
as per title, I've an image column. How can I center the image into the column? or, for currency values, how to align to right?
1 replies
FFilament
Created by realtebo on 1/18/2024 in #❓┊help
How to add date column?
In the doc (here: https://filamentphp.com/docs/3.x/tables/columns/getting-started) about table columns, I cannot find a 'date' columne.
4 replies
FFilament
Created by realtebo on 1/18/2024 in #❓┊help
How to avoid to add a resource to nav bar?
Every time I create a new resource, a new menu is added into the left sidebar. How can I avoid this?
5 replies
FFilament
Created by realtebo on 1/18/2024 in #❓┊help
how to add field to a view page?
I added a view page to a resource already existing
php artisan make:filament-page ViewPlaylist --resource=PlaylistResource --type=ViewRecord
php artisan make:filament-page ViewPlaylist --resource=PlaylistResource --type=ViewRecord
I registered the page in PlaylistResource::getPages()
public static function getPages(): array
{
return [
'index' => Pages\ListPlaylists::route('/'),
'view' => Pages\ViewPlaylist::route('/{record}'),
'create' => Pages\CreatePlaylist::route('/create'),
'edit' => Pages\EditPlaylist::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListPlaylists::route('/'),
'view' => Pages\ViewPlaylist::route('/{record}'),
'create' => Pages\CreatePlaylist::route('/create'),
'edit' => Pages\EditPlaylist::route('/{record}/edit'),
];
}
it created succesfully app/Filament/Resources/PlaylistResource/Pages/ViewPlaylist.php My question is: how and where must I add all the readonly fields I need?
4 replies