import app Models User change
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Event;
|
||||
use App\Models\EventCategory;
|
||||
use Faker\Generator as Faker;
|
||||
@@ -11,7 +12,7 @@ $factory->define(Event::class, function (Faker $faker) {
|
||||
$endDate = $faker->dateTimeBetween($startDate, date_add($startDate, date_interval_create_from_date_string('10 days')));
|
||||
$endDate = (rand(0, 1) === 0) ? null : $endDate;
|
||||
return [
|
||||
'user_id' => factory(\App\User::class),
|
||||
'user_id' => factory(User::class),
|
||||
'category_id' => factory(EventCategory::class),
|
||||
'name' => $faker->words(3, [false]),
|
||||
'description' => $faker->words(rand(10, 300), [false]),
|
||||
|
||||
Reference in New Issue
Block a user