mardi 5 avril 2016

Laravel 5.1: Search not returning any data

I am having one multi-select field. In my search.blade.php.

HTML::select2(
        'test[]', 
        trans('timesheet.test'),
        trans("attr/timesheet.test"), 
        Input::old('test[]'), 
        true)

and my scopeSearchFilter in model have following code.

if($request->has('test')) $query = $query->where('test',$request->get('test'));

I am not able to return array. It is returning nothing. Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire