Search code examples
phplaravellumenlaravel-artisanlumen-5.2

Command "make:seeder" is not defined in Lumen 5.2


I'm developing my first Lumen project and I try to create a seed class for my database.

I'm trying to run the next command:

php artisan make:seeder UsersTableSeeder

But I always get this error:

[Symfony\Component\Console\Exception\CommandNotFoundException]

Command "make:seeder" is not defined.

Did you mean one of these?

  db:seed

  make:migration

I'm searching a lot how to solve that problem but I did'nt find anything. Any ideas what I need to do?

I'm using lumen-framework 5.2.*


Solution

  • make:seeder command is not available in Lumen.

    To see all built-in commands, use the php artisan command in Lumen.

    So, you will need to write the codes by yourself. What you can do is copy the skeleton file from Laravel and use it as a starter in your Lumen project.