Object of class Filament\Support\Enums\Alignment could not be converted to string
I started having this issue on every version after .83. All is working fine on 3.0.83, so i have to stick to it for now.
Here is the link to trace:
https://flareapp.io/share/xPQwOar5
Flare
Object of class Filament\Support\Enums\Alignment could not be converted to string - The error occurred at http://localhost/dashboard/projects
Solution:Jump to solution
For future reference, if someone encounters similar issue, don't use
alignXxx()
shorthand functions, but follow this from documentation:
https://filamentphp.com/docs/3.x/tables/columns/getting-started#aligning-column-content...3 Replies
There is no custom code involved. Just wanted to throw this in, as i don't see anyone else having same issue
So, the issue is with using
alignCenter()
and alignJustify()
in $table TextColumn. As soon as i removed them, error was gone.Solution
For future reference, if someone encounters similar issue, don't use
alignXxx()
shorthand functions, but follow this from documentation:
https://filamentphp.com/docs/3.x/tables/columns/getting-started#aligning-column-contentMe too have this issue