Closed ehsantalkhouncheh closed 2 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.
Sorry, you are facing these issues. Which Laravel version are you using?
Hello and thank you so much for reply , Laravel Version 8
Alright. Let me try and recreate this issue with the latest release. I will get back to you shortly.
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.
I'm facing the same issue. My Laravel version is 10. https://prnt.sc/iwL8OYEAJkLa
What exactly are you trying to do when facing this issue?
when run the php artisan pagebuilder: install command showing error Target class [Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder] does not exist.
Alright. Thanks for the details. I will take a look and get back to you as soon as I can.
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']);
After run php artisan pagebuilder:install command i faced this error Target class [Flobbos\Pagebuilder\Database\Seeds\ElementTableSeeder] does not exist.