Reset the criterea before a new search

This commit is contained in:
Nabeel Shahzad
2019-05-11 11:37:06 -05:00
parent 65bd6888e8
commit 7fce5421b4
6 changed files with 16 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ $factory->define(App\Models\Flight::class, function (Faker $faker) {
'start_date' => null,
'end_date' => null,
'created_at' => $faker->dateTimeBetween('-1 week', 'now'),
'updated_at' => function (array $flight) {
'updated_at' => static function (array $flight) {
return $flight['created_at'];
},
];