TiBiBa
Notifications works when triggered on mount() but not when triggered on submit()?
I finally managed to fix this. Long story short: We defined custom middleware groups to completely separate between our admin panel and other application. Due to this change the
web
middleware was still empty. The notifications issue was solved by adding \Illuminate\Session\Middleware\StartSession::class
to the empty web
array.18 replies
Notifications works when triggered on mount() but not when triggered on submit()?
The question is independent of how the forms works. It's a general issue with displaying notifications. For an unknown reason they are displayed as expected before the mount(), but afterwards not.
18 replies
Notifications works when triggered on mount() but not when triggered on submit()?
I tried, but unfortunately the codebase is too complex to separate en share publicly. I did find some more info. When rendering a page the session has some attributes (as shown in the debugbar) but when I submit a form the session seems to be emptied?
18 replies
Notifications works when triggered on mount() but not when triggered on submit()?
The issue occurs on all pages, also the default resource ones. I made a new custom page that reproduces the error. But once again, it seems the issue is globally.
18 replies
Associate headerAction not showing on Relation manager?
Just found a solution. This is due to the relations only being readOnly on view by default. Hiding all actions that can mutate the relation (so all instead of the view). Adding the following to your relation is the fix:
4 replies