Anthaas
Nullable dates in spatie/laravel-settings
Can anyone provide a basic example of how to define a settings class with a nullable date property?
I have this:
and a Page which provides a form with
DateTimePicker::make('dateFrom')->seconds(false)->native(false);
but every time I try to save where there is a date set, I am getting an error saying:
Cannot assign string to property App\Settings\MySettings::$dateFrom of type ?DateTimeInterfaceFrom reading the docs, I can't tell what else would be required? The global cast for DateTimeInterface is set up per the docs and default config publication.
17 replies
What is the best way to have Filament manage a single text entry?
I want the user to be able to set a piece of text, which can be managed within the Filament admin panel. There won't ever be more than 1 instance of this piece of text, so its not like I'm allowing multiple resources to be created. This piece of text will be shown globally, like a banner, across the site. Its either there, or not.
2 replies
Has anyone used the Google Analytics plugin on the Plugins section of the website?
I'm trying to decipher what the filters mean in the ActiveUsersXDayWidget widgets mean?
Active Users 1 day - the number of active users from the end of my date range. Fine.
Active Users 28 day - the number of active users from 28 days before the end of my date range, to the end of my date range. Fine.
But what does a filter of 5, 10, and 15 days mean in those contexts?
2 replies
Modifying default page layout.
Hi!
I've been following Filament for a while, and am using it for the first time on a small website for a family business. It's incredibly easy to use.
I suspect either I'm overthinking this, or am missing something - and the answer might simply be "publish the filament-panels files and modify the index.blade.php file.". If so, please say.
I am not a particular fan of the large gap on a page between the heading and the tables added. I think I've narrowed it down to the
h-full
class on the section
element added to the page. Is there a way of removing this without needing to publish/edit the vendor views, and subsequently, is doing this change likely to result in a wonky layout that I may not have encountered yet?59 replies