-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Error when trying to use this package with Laravel 8:
Method Illuminate\Support\Arr::join does not exist. (View: /var/www/html/vendor/nuhel/filament-cropper/resources/views/components/cropper.blade.php)
The error is correct, but the composer.json file is not. The Arr::join() is only available from Laravel 9. The composer.json dependencies need to reflect this. Or if this package is supposed to be compatible with Laravel 8, then replacing Arr::join() with implode() is needed.
I'm guessing it's this line:
accept="{{\Illuminate\Support\Arr::join($getAcceptedFileTypes(),',','')}}"
(This feels wrong anyway - why is the joiner for the last two file types in the list an empty string? It would mean they possibly wouldn't work.)
At least, being in a view, this can be easily to publish and override as a workaround. Works great after doing that.