Can somebody tell me what am I doing wrong?
I want to get all projects with status 0 and if any of data matches in eloquent.
My code is like this

```
public function search(Request $request){
        if($request->has('q')){

            $search_query = $request->input('q');

            $projects = Project::where(['status' => '0'])->get();

            $projects = $projects->where(function($query) use ($search_query) {
                $query->where('title','LIKE','%'.$search_query.'%')
                      ->orWhere('shortDescription','LIKE','%'.$search_query.'%')
                      ->orWhere('longDescription','LIKE','%'.$search_query.'%')
                      ->orWhere('tags','LIKE','%'.$search_query.'%')
                      ->orWhere('projectLink','LIKE','%'.$search_query.'%');
            });
            $projects->get();

            dd($projects);
         }
}

```

> 
> And I am getting this error
> 
> 
> ErrorException  
> 
> explode() expects parameter 2 to be string, object given
> 
> 
>