wulfheart
Show different pages based on model state
Hello,
I am currently unsure how I should organize my code to work better. I want to display different edit/view pages for different states a model is in. E.g. my
Game
model has the states PreGame
, Playing
, Finished
with different RelationManagers each. Is there a way to have multiple edit pages with different RelationManagers each? I was unfortunately unable to find docs on this.2 replies
Form Builder: form method somehow resets public property values
Hello,
when setting properties in a Form Component in the mount method the changes don't get persisted so they return back to their default values. I only want to make the call to the
AuthServiceInterface
once because it also does a DB query. How can I achieve it to access values in the form
method which have been set in the mount
method?
Thank you in advance.
2 replies
phpstan: Access to an undefined property App\Livewire\RegisterPage::$form.
When creating a form like described in the docs at https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form then I get the following PHPStan message. Is the documentation still up to date or do I have to set it differently? What about autocompletion?
6 replies
how to build custom theme
Hello,
how can I build the tailwind of a custom theme.
It just does not seem to just run
npm run build
. How can I "register" the custom tailwind.config.js
so that it generates the correct output css?
Thank you in advance.8 replies