app/Http/Controllers/Site/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $trips = auth()->user()->load('trips', 'trips.pivot.pickup', 'trips.pivot.arrival')->trips;
        return view('home', compact('trips'));
    }
public function index ( ) { $ trips = auth ( ) -> user ( ) -> load ( 'trips' , 'trips.pivot.pickup' , 'trips.pivot.arrival' ) -> trips ; return view ( 'home' , compact ( 'trips' ) ) ; }
Show the application dashboard.
Show the application dashboard .