Apiato: Specific Seeder class not work

Created on 20 Apr 2020  ·  2Comments  ·  Source: apiato/apiato

Description:

Hi, thank you for make thus wonderful project!

Now, I have a problem,I create a seeder file with php artisan apiato:generate:seeder,

 Enter the name of the Container:
 > Authorization
 Enter the name of the Seeder file [AuthorizationSeeder]:
 > AuthorizationTestRoleSeeder
> Generating (AuthorizationTestRoleSeeder) in (Authorization) Container.
Seeder generated successfully.

Exec composer dumpautoload:

Generated optimized autoload files containing 6076 classes

But when I exec php artisan db:seed --class=AuthorizationTestRoleSeeder command, it return the error below:

In Container.php line 805:
  Target class [AuthorizationTestRoleSeeder] does not exist.  
In Container.php line 803:
  Class AuthorizationTestRoleSeeder does not exist 

I have submit this problem in apiato slack, Maybe you are too busy to see it, so I submit this issue and hope to get your help. Thank you very much!

Expected Behavior:

Additional Context:

Versions:

  • Apiato Version: 8.0.1
  • PHP Version: 7.3.15

Steps To Reproduce:

  1. Go to '...'
  2. Click on '....'

Most helpful comment

You need to provide the fully quallified Namespace of your Seeder class.

Try php artisan db:seed --class="App\Containers\Authorization\Data\Seeders\AuthorizationTestRoleSeeder"

All 2 comments

You need to provide the fully quallified Namespace of your Seeder class.

Try php artisan db:seed --class="App\Containers\Authorization\Data\Seeders\AuthorizationTestRoleSeeder"

Wow! It's working.
I also tried php artisan db:seed --class=App\Containers\Authorization\Data\Seeders\AuthorizationTestRoleSeeder, but it not work, because I didn't add "".
Thanks a million!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

livevasiliy picture livevasiliy  ·  6Comments

san4io picture san4io  ·  7Comments

overbid picture overbid  ·  4Comments

ghost picture ghost  ·  6Comments

phuocnt0612 picture phuocnt0612  ·  3Comments