Run Seed file

  • I created one Seed file in module, and I run command

    php artisan module:seed Friend

    But after that, I see the bug

    Class 'Modules\Friend\Database\Seeders\DB' not found.

    I don't know why. I created a seed file with different name, not DB class name

  • Fortunately, I found my problem:
    include Illuminate\Support\Facades\DB, it runs well

    Thank you !! :smile:

Log in to reply

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.