uicabpatweyler
uicabpatweyler
FFilament
Created by uicabpatweyler on 8/2/2023 in #❓┊help
Tricks section of the previous site
Thanks @pboivin You are right, I have already found them, thank you very much.
4 replies
FFilament
Created by uicabpatweyler on 5/27/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1364 Field 'locked' doesn't have a default value
And how could I add it from Filament? Since filament gets the data to display and update from the configuration file defined in protected static string $settings = GeneralSetting::class; In this case the properties are in the GeneralSettings.php file. And each field corresponds to the name of a property. In my case I have these: <?php namespace App\Settings; use Spatie\LaravelSettings\Settings; class GeneralSetting extends Settings { public string $app_name; public string $organization_name; public string $organization_description; public int $school_cycle_current; public static function group(): string { return 'generalSetting'; } } The name of each form field must correspond with the name of the property on your settings class. The form will automatically be filled with settings from the database, and saved without any extra work.
7 replies