app/Http/Controllers/SearchController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function HomeSearch(Request $request)
    {
        $user_type=$request['user_type'];
        $city =$request['city'];
       $users=User::where('user_type', $user_type)->where('city',$city)->paginate(4);
        return view('pages.search')->with('users',$users);
    }
public function HomeSearch ( Request $ request ) { $ user_type = $ request [ 'user_type' ] ; $ city = $ request [ 'city' ] ; $ users = User :: where ( 'user_type' , $ user_type ) -> where ( 'city' , $ city ) -> paginate ( 4 ) ; return view ( 'pages.search' ) -> with ( 'users' , $ users ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .