I have a seeder class in the database folder
class UsersTableSeeder extends Seeder
{
public function run()
{
$user = new User();
$user->name = 'Name';
$user->email = 'email@gmail.com';
$user->password = bcrypt('secret');
$user->save();
}
}
When I run php artisan db:seed
nothing happens, the seeder is only called when I run php artisan db:seed --class=UsersTableSeeder
This means I have to call each seeder class separately, any idea why db:seed
doesn't work by it self?
via code511788465541441