Flobbos / laravel-pagebuilder

Organize content in rows and columns with custom tailored elements
MIT License
15 stars 6 forks source link

Target class [Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder] does not exist. #21

Closed ehsantalkhouncheh closed 2 years ago

ehsantalkhouncheh commented 3 years ago

After run php artisan pagebuilder:install command i faced this error Target class [Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder] does not exist.

ehsantalkhouncheh commented 3 years ago

Also after run seeds manually when i try to visit the website i faced this errorIlluminate\Contracts\Container\BindingResolutionException Target class [App\Language] does not exist.

Flobbos commented 3 years ago

Sorry, you are facing these issues. Which Laravel version are you using?

ehsantalkhouncheh commented 3 years ago

Hello and thank you so much for reply , Laravel Version 8

Flobbos commented 3 years ago

Alright. Let me try and recreate this issue with the latest release. I will get back to you shortly.

Flobbos commented 3 years ago

Thanks for your patience and apologies again for these issues. I have created a new release that fixes the Seeder issue.

In regards to the Missing language model you need to publish the config for the dependent translatable-db package and change the translatabledb.php config file that was published like so:

'language_model' => 'Flobbos\Pagebuilder\Models\Language',

This should be in line 25. Then it will work.

safrakib commented 10 months ago

I'm facing the same issue. My Laravel version is 10. https://prnt.sc/iwL8OYEAJkLa

Flobbos commented 10 months ago

What exactly are you trying to do when facing this issue?

safrakib commented 10 months ago

when run the php artisan pagebuilder: install command showing error Target class [Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder] does not exist.

Flobbos commented 10 months ago

Alright. Thanks for the details. I will take a look and get back to you as soon as I can.

Faber44 commented 7 months ago

Still the same problem in both Laravel 9 and Laravel 10. I have published and changed the config file "translatabledd.php" like said : ''language_model' => 'Flobbos\Pagebuilder\Models\Language'. Same problem.

[EDIT] Wrong path in "vendor/flobbos/laravel-pagebuilder/src/Pagebuilder/Commands/InstallCommand.php" Lines 42-43 : Replace (lines42 & 43) : Artisan::call('db:seed', ['--class' => 'Flobbos\Pagebuilder\ElementTableSeeder']); Artisan::call('db:seed', ['--class' => 'Flobbos\Pagebuilder\LanguageTableSeeder']); by Artisan::call('db:seed', ['--class' => 'Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder']); Artisan::call('db:seed', ['--class' => 'Flobbos\Pagebuilder\Database\Seeds\LanguageTableSeeder']);