You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
468 B
18 lines
468 B
<?php
|
|
|
|
use App\User;
|
|
use App\Outlet;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(Outlet::class, function (Faker $faker) {
|
|
|
|
return [
|
|
'name' => ucwords($faker->words(2, true)),
|
|
'address' => $faker->address,
|
|
'latitude' => $faker->latitude(-3.29, -3.35),
|
|
'longitude' => $faker->longitude(114.56, 114.63),
|
|
'creator_id' => function () {
|
|
return factory(User::class)->create()->id;
|
|
},
|
|
];
|
|
});
|