phpvms/app/Database/factories/FareFactory.php
2018-01-05 13:00:45 -06:00

14 lines
370 B
PHP

<?php
use Faker\Generator as Faker;
$factory->define(App\Models\Fare::class, function (Faker $faker) {
return [
#'id' => $faker->unique()->numberBetween(10, 10000),
'code' => $faker->text(5),
'name' => $faker->text(20),
'price' => $faker->randomFloat(2, 100, 1000),
'capacity' => $faker->randomFloat(0, 20, 500),
];
});