Nils Domin
Strange routes behaviour in production
I have a strange routes behaviour in my production deployment with two panels, one "/admin" and one "/app".
On my local environment everything works expected, but on production it doesn't. If I log into /admin, everything is okay, if I try to login into /app, there are "too many redirects". I can't figure out, why.
If I run
php artisan route:list
I get the correct routes in local, but there's a strange route in production deployment (ploi.io), which I think that causes the problem. I've created the custom LoginResponse recommended by Povilas (https://laraveldaily.com/post/filament-disable-dashboard-auto-redirect-url-after-login), but this doesn't solve the problem. Where does this "filament.app.home" route come from?
Of course, I've tried to delete the routes cache (and other caches), but nothing helped.4 replies
How do I count the saved elements of a form's Repeater Field in a table column?
In my form I have a Repeater field which saves data as json (cast to array in model). Now I want to show the count of these items from this json column in my table, for example with a TextColumn. How do I achieve that?
If I try with
formatStateUsing...
I always get the error Array to string conversion
, no matter what I try .5 replies