F
Filament4w ago
Jure

spatie/laravel-activitylog error

correction it is saade/filament-laravel-log Hello, I am trying to set spatie/laravel-activitylog butI get this error because, in the form, there is
Forms\Components\Select::make('logFile')
->label(false)
Forms\Components\Select::make('logFile')
->label(false)
Where the label should not be boolean. Is there a quick fix for this? I would like to leave Vendor files untouched. Thanks for your support!
Filament\Forms\Components\Component::label(): Argument #1 ($label) must be of type Illuminate\Contracts\Support\Htmlable|Closure|string|null, false given, called in /var/www/html/vendor/saade/filament-laravel-log/src/Pages/ViewLog.php on line 60
Filament\Forms\Components\Component::label(): Argument #1 ($label) must be of type Illuminate\Contracts\Support\Htmlable|Closure|string|null, false given, called in /var/www/html/vendor/saade/filament-laravel-log/src/Pages/ViewLog.php on line 60
Solution:
Either PR the fix to the plugin or report it as an issue on the plugin’s GitHub.
Jump to solution
4 Replies
Karl Marx
Karl Marx4w ago
Are u trying to hide the label? If trying to change lable u can use label() method and use hiddenLabel() to hide the label instead.
Jure
JureOP4w ago
Hey, I know that. I am not trying to hide the label; this is wrongly written in vendor files, and I would like to override this without tempering the vendor files.
Solution
awcodes
awcodes4w ago
Either PR the fix to the plugin or report it as an issue on the plugin’s GitHub.
Jure
JureOP4w ago
Will do that, thanks!

Did you find this page helpful?