app/Http/Controllers/admin/CareController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $pageSize =config('app.pageSize');
       $contacts =DB::table('contacts')->paginate(2);
        $query = request()->all() ;
        return view('admin.care.index',['data'=>$contacts,'query'=>$query]);
    }
public function index ( ) { $ pageSize = config ( 'app.pageSize' ) ; $ contacts = DB :: table ( 'contacts' ) -> paginate ( 2 ) ; $ query = request ( ) -> all ( ) ; return view ( 'admin.care.index' , [ 'data' => $ contacts , 'query' => $ query ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $data=Customer::where()->paginate($pageSize); //        dd($contacts);