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