Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.*

like image 424
pableiros Avatar asked Dec 08 '25 07:12

pableiros


1 Answers

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.

like image 61
Muhammad Sumon Molla Selim Avatar answered Dec 10 '25 07:12

Muhammad Sumon Molla Selim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!