Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined function str_slug() in Laravel 6.0 #15

Closed
pwronline opened this issue Oct 14, 2019 · 2 comments
Closed

undefined function str_slug() in Laravel 6.0 #15

pwronline opened this issue Oct 14, 2019 · 2 comments

Comments

@pwronline
Copy link

String and Array helpers are removed from laravel 6.0 Core Framework

https://laravel.com/docs/6.0/upgrade#helpers

So if You need to still use the helper install the package

composer require laravel/helpers

Or you can use by Laravel facade

use Illuminate\Support\Str;
$slug = Str::slug('Laravel 5 Framework', '-');
@Manoz
Copy link

Manoz commented Oct 14, 2019

Nice catch. Here's the fix :p

@pwronline
Copy link
Author

Thx! @Manoz good job!

@Krato Krato closed this as completed in 2f56856 Oct 15, 2019
Krato added a commit that referenced this issue Oct 15, 2019
[Fix #15] Fix str_slug for Laravel 6 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants