I am trying to put test data in a database for a Laravel project. I have followed the instructions on Laracasts, and a couple of sites. When I try to run my Seeder class, I get "Class 'User' not found" Here is my class:
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder {
public function run()
{
$faker = Faker\Factory::create();
for ($i = 0; $i < 50; $i++)
{
$user = User::create(array(
'name' => $faker->userName,
'email' => $faker->email,
'password' => $faker->word,
'verified' => $faker-numberBetween($min = 0, $max = 1)
));
}
}
}
Does anyone out there know what I need to do?