elcobvg / laravel-opcache

Custom OPcache Cache Driver for Laravel. Faster than Redis, Memcache or APC.
MIT License
44 stars 12 forks source link

Laravel 7.x compatibility #16

Closed ruskiyos closed 4 years ago

ruskiyos commented 4 years ago

As of Laravel 5.8, str helper classes are deprecated.

https://github.com/laravel/framework/pull/26898

The constructor still uses str_slug.

$this->prefix = str_slug($prefix ?: config('app.name', 'opcache'), '-');

Can this please be updated to use Str::slug instead?

elcobvg commented 4 years ago

Good catch, thanks! Fixed now.