Adminpanel settings change in App
hello all, i need help understanding how can i dynamicly change a configuration in Adminpanel
my example is
->passwordReset() and i want to have a toggle form to change this to either true or false what would be the best approach? Thank you
->passwordReset() and i want to have a toggle form to change this to either true or false what would be the best approach? Thank you
Solution:Jump to solution
for starters, don't use env() outside of a config file. You'll run into potential caching issues.
try this
```php
$panel...
5 Replies
->passwordReset(fn() => run a check / fetch where the setting should come from)
i cant do this
error:
UnexpectedValueException
PHP 8.2.0
10.37.3
Invalid route action: [1].
Solution
for starters, don't use env() outside of a config file. You'll run into potential caching issues.
try this
thank you for answering
is not working for me
error:
Route [filament.admin.auth.password-reset.request] not defined.
works (for now) π
thank you again
yea, it's too late in the cycle to do what I was recommending. Guess that works too.
proper thing would probably be to extend the password classes to add your functionality there.