list trips

add, remove flights
This commit is contained in:
Richard Morgan
2017-05-14 20:57:30 -04:00
parent 37d345840b
commit 09fa83af8b
16 changed files with 426 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/
$factory->define(App\Libraries\Trips\Models\Trips::class, function (Faker\Generator $faker) {
return [
'name' => $faker->text(10),
];
});
$factory->define(App\Libraries\Trips\Models\Flights::class, function (Faker\Generator $faker) {
return [
'destination' => $faker->countryISOAlpha3, //TODO change this
];
});