sawastacks / ci4-slugify

Simple Slugify Library for Codeigniter 4
MIT License
5 stars 0 forks source link

Class "Mberecall\CodeIgniter\Library\SlugService" not found #1

Open SergioPMA opened 6 months ago

SergioPMA commented 6 months ago

hello, I'm trying to use Slugify library but this error is thrown from Slugify class. Here's my code:

        // generate unique slug
        $slug = Slugify::model(ArgumentModel::class);
        if ($argument->id_argument) {
           $slug =  $slug->sid($argument->id_argument);
        }
        $input['slug'] = $slug->make($input['title']);

maybe you forgot to import SlugifyService from Slugify class?

sawastacks commented 6 months ago

Yeah, we forgot to update correctly our Slugify.php file. But Issue resolved. You can remove old version by using this command "composer remove mberecall/ci4-slugify" and reinstall latest version by using "composer require mberecall/ci4-slugify"

SergioPMA commented 6 months ago

ok now it works, thank you