getTabs v3.2.77 error: trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\
Something has changed between Filament v3.2.76 and v3.2.77 with getTabs. In .76, this code works fine:
That same code results in this error in 3.2.77:
I'm not sure what I'm doing wrong, as that appears to be valid usage according to documentation.
Solution:Jump to solution
Issue resolved by removing published filament-views: /resources/views/vendor/filament
11 Replies
I didn't mention, I tried this as well with iconPosition -- or giving no iconPosition at all. The problem persists:
->iconPosition(IconPosition::Before),
->iconPosition('after')
works?on 3.2.76, yes. When I update to anything after that -- including up to .80 (latest at time of this comment) it fails with this error:
Either one of these causes the trim() error above
It looks like I'm going to have to put an "Issue" on github with a repo that showcases the error
yes please
What theme is this?
Bearded Theme Monaki Black: https://github.com/BeardedBear/bearded-theme
GitHub
GitHub - BeardedBear/bearded-theme: The VS Code theme with a long b...
The VS Code theme with a long beard. Contribute to BeardedBear/bearded-theme development by creating an account on GitHub.
I'm actually an idiot. The entire problem was that I published filament views and didn't listen to Dan here: https://filamentphp.com/community/danharrin-publishing-views-in-laravel -- I republished views, but ultimately I'd just like to "undo" the published views. Is it as simple as deleting the resources/views/vendor/filament directory?
Filament
Publishing Views in Laravel by Dan Harrin - Filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
Solution
Issue resolved by removing published filament-views: /resources/views/vendor/filament