Answers for "Method Illuminate\Support\Collection::links does not exist."

0

Method Illuminate\Support\Collection::links does not exist.

//make sure that all your queries/builder has ->paginate and not a ->get() or 
->first()

        if(empty($request->search)){
            $user = DB::table('users')->Paginate(15);
            return view('/users', ['user' => $user]);
        }else{
            $user = DB::table('users')->where('name', 'like', '%'. $request->search .'%')->Paginate(15);
            return view('/users', ['user' => $user]);
        }
Posted by: Guest on May-02-2021

Code answers related to "Method Illuminate\Support\Collection::links does not exist."

Browse Popular Code Answers by Language