app/Http/Controllers/RdvsController.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()
    {
        $rdvs_e = Rdv::where('user_id', Auth::id())->get();
        $rdvs_r = Rdv::where('receiver_id', Auth::id())->get();
        return view('rdvs.index', compact('rdvs_e','rdvs_r'));
    }
public function index ( ) { $ rdvs_e = Rdv :: where ( 'user_id' , Auth :: id ( ) ) -> get ( ) ; $ rdvs_r = Rdv :: where ( 'receiver_id' , Auth :: id ( ) ) -> get ( ) ; return view ( 'rdvs.index' , compact ( 'rdvs_e' , 'rdvs_r' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .