uasoft-indonesia / badaso-commerce-module

Commerce system for badaso, build your online shop faster
https://badaso-commerce.uatech.co.id
MIT License
4 stars 1 forks source link

Error on db:seed #23

Closed kingrootid closed 1 year ago

kingrootid commented 2 years ago

   Illuminate\Contracts\Container\BindingResolutionException 

  Target class [Database\Seeders\BadasoCommerceModuleSeeder] does not exist.

  at vendor/laravel/framework/src/Illuminate/Container/Container.php:879
    875▕ 
    876▕         try {
    877▕             $reflector = new ReflectionClass($concrete);
    878▕         } catch (ReflectionException $e) {
  ➜ 879▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
    880▕         }
    881▕ 
    882▕         // If the type is not instantiable, the developer is attempting to resolve
    883▕         // an abstract type such as an Interface or Abstract Class and there is

      +23 vendor frames 
  24  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
masqomar commented 2 years ago

php artisan db:seed --class="Database\Seeders\Badaso\Commerce\BadasoCommerceModuleSeeder"

it works for me

diorz38 commented 2 years ago

php artisan db:seed --class="Database\Seeders\Badaso\Commerce\BadasoCommerceModuleSeeder"

it works for me

yeah, but when browse the data in backend, nothing show in all commerce tablea. in browser console in showed error GET http://127.0.0.1:8000/badaso-api/module/commerce/v1/product-category? 404 (Not Found)

rizkiheryandi commented 1 year ago

@diorz38 are you sure your base url is 127.0.0.1:8000 ?

rizkiheryandi commented 1 year ago

i will close this thred because there's no reply from @diorz38

and already answered by @masqomar