Gandalf
same model policy: multiple resources
I think this question was for me. Here is a sample:
and then,
Here
AccountPolicy
has inherited all the methods from ModelPolicy
with appropriate customizations through static variables. And custom policy method or overrides are specified in the derived policy, such as setOpeningBalance
in this case.13 replies
fillForm on Create Page?
2 things:
1.
form(self::form())
doesn't work as self::form requires a from argument. So, I've used form(fn (Form $form) => static::form($form->model(static::$model))->columns(2))
instead
2. It creates a new record with old values, and updated the existing record with new values30 replies