sbine / nova-route-viewer

Route viewer tool for Laravel Nova
MIT License
59 stars 9 forks source link

Helper functions are no longer added by default #9

Closed rickgoemans closed 4 years ago

rickgoemans commented 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:

  1. (Preferred) use the following instead: Illuminate\Support\Str::endsWith($haystack, $needles);

  2. Add dependency: laravel/helpers.

rickgoemans commented 4 years ago

Here you can read Laravel's new upgrade guide regaring the matter: Laravel 6 Upgrade guide

sbine commented 4 years ago

Fixed in #11.