public function search($input)
    {
        $query = $this->model->orderBy('created_at', 'desc');

        $columns = Schema::getColumnListing('users');

        foreach ($columns as $attribute) {
            $query->orWhere($attribute, 'LIKE', '%'.$input.'%');
        };

        return $query->paginate(env('PAGINATE', 25));
    }
public function search($input)
    {
        $query = $this->model->orderBy('created_at', 'desc');

        $columns = Schema::getColumnListing('users');

        foreach ($columns as $attribute) {
            $query->orWhere($attribute, 'LIKE', '%'.$input.'%');
        };

        return $query->paginate(env('PAGINATE', 25));
    }
public function search ( $ input ) { $ query = $ this -> model -> orderBy ( 'created_at' , 'desc' ) ; $ columns = Schema :: getColumnListing ( 'users' ) ; foreach ( $ columns as $ attribute ) { $ query -> orWhere ( $ attribute , 'LIKE' , '%' . $ input . '%' ) ; } ; return $ query -> paginate ( env ( 'PAGINATE' , 25 ) ) ; }
Search the users

@param  string $input
@return mixed
Search the users