app/Http/Controllers/PreferenceController.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()
    {
        $insurance= Insurance::all();
        $charges = Charge::all();
        $diagnoses = Diagnose::with('user')->get();
        return view('pages.preferences.index')
            ->with('insurance',$insurance)
            ->with('charges',$charges)
            ->with('diagnoses',$diagnoses);
    }
public function index ( ) { $ insurance = Insurance :: all ( ) ; $ charges = Charge :: all ( ) ; $ diagnoses = Diagnose :: with ( 'user' ) -> get ( ) ; return view ( 'pages.preferences.index' ) -> with ( 'insurance' , $ insurance ) -> with ( 'charges' , $ charges ) -> with ( 'diagnoses' , $ diagnoses ) ; }
Display a listing of the resource.
Display a listing of the resource .
//        return $diagnoses;