On this page
Upgrading
Upgrade to v4
using an enum for the status:
the namespace for the FormsStatus
changed from LaraZeus\\Bolt\\Models\\FormsStatus
to LaraZeus\\Bolt\\Enums\\FormsStatus
Configuration:
Add to your config file:
1'enums' => [2 'FormsStatus' => FormsStatus::class,3],
and remove the key FormsStatus
from the models
array.
the same for the panel configuration:
1BoltPlugin::make()2 ->models([3 'FormsStatus' => \App\Enums\Bolt\FormsStatus::class, 4 ])5 6 ->enums([ 7 'FormsStatus' => \App\Enums\Bolt\FormsStatus::class, 8 ])
Is Active
we added a new option for all fields: is_active
. its helps to "hide" a field without the need to delete it.
to migrate all your old fields options, simply run the command:
1php artisan bolt:activate-fields