adevade
adevade
FFilament
Created by Jean-Loup on 4/29/2025 in #❓┊help
Year data type
You should define the cast on the Eloquent model: https://laravel.com/docs/10.x/eloquent-mutators#date-casting
13 replies
FFilament
Created by Jean-Loup on 4/29/2025 in #❓┊help
Year data type
I believe this should work, but I have not tested unfortunately. Otherwise you could just store the year as an integer and user accessors and mutators on the model to get it in your desired format throughout your application: https://laravel.com/docs/10.x/eloquent-mutators#accessors-and-mutators
13 replies
FFilament
Created by Jean-Loup on 4/29/2025 in #❓┊help
Year data type
If you cast it to a Carbon object with date:Y, it should use the value as a year instead of a unix timestamp
13 replies
FFilament
Created by Jean-Loup on 4/29/2025 in #❓┊help
Year data type
Or you could just cast it to an integer if you don't need Carbon
13 replies
FFilament
Created by Jean-Loup on 4/29/2025 in #❓┊help
Year data type
You can define the casts on the Eloquent model to get a Carbon instance from a custom format: 'year' => 'date:Y'
13 replies
FFilament
Created by adevade on 2/10/2025 in #❓┊help
Flashing light mode on page refresh in panel
@Dan Harrin Seems to be working with the new release! Nice work, thank you very much! 💛
7 replies
FFilament
Created by Sangram_11 on 6/5/2024 in #❓┊help
Custom Page issue with filament
Have you read the documentation? https://filamentphp.com/docs/3.x/panels/pages You should get a Blade file in your views/pages directory, where you can do whatever you want.
2 replies