Closed rickgoemans closed 4 years ago
In Laravel 6 helper functions (like ends_with) are no longer available by default.
Since your controller (Api.php) uses ends_with you'll receive an error on new Laravel installations.
Solution:
(Preferred) use the following instead: Illuminate\Support\Str::endsWith($haystack, $needles);
Illuminate\Support\Str::endsWith($haystack, $needles);
Add dependency: laravel/helpers.
laravel/helpers
Here you can read Laravel's new upgrade guide regaring the matter: Laravel 6 Upgrade guide
Fixed in #11.
In Laravel 6 helper functions (like ends_with) are no longer available by default.
Since your controller (Api.php) uses ends_with you'll receive an error on new Laravel installations.
Solution:
(Preferred) use the following instead:
Illuminate\Support\Str::endsWith($haystack, $needles);
Add dependency:
laravel/helpers
.