File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 216
216
});
217
217
218
218
it ('can filter many columns with one field ' , function () {
219
- TestModel::factory ()->create (['name ' => 'Baro Nil ' ]);
220
- TestModel::factory ()->create (['name ' => 'Baro Joe ' ]);
221
- TestModel::factory ()->create (['name ' => 'Billy Nil ' ]);
219
+ TestModel::factory ()->create (['name ' => 'Baro ' , ' title ' => ' Nil ' ]);
220
+ TestModel::factory ()->create (['name ' => 'Baro ' , ' title ' => ' Joe ' ]);
221
+ TestModel::factory ()->create (['name ' => 'Billy ' , ' title ' => ' Nil ' ]);
222
222
223
223
injectRequest (['name ' => 'Baro ' ]);
224
224
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ protected function setUpDatabase(Application $app)
29
29
$ app ['db ' ]->connection ()->getSchemaBuilder ()->create ('test_models ' , function (Blueprint $ table ) {
30
30
$ table ->increments ('id ' );
31
31
$ table ->string ('name ' );
32
+ $ table ->string ('title ' )->nullable ();
32
33
$ table ->unsignedTinyInteger ('type_flag ' )->default (0 );
33
34
$ table ->boolean ('is_visible ' )->default (true );
34
35
$ table ->unsignedInteger ('related_model_id ' )->nullable ();
You can’t perform that action at this time.
0 commit comments