app/Http/Controllers/Admin/RideController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Ride  $ride
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Ride $ride)
    {
        $buses = Auth::user()->company()->buses()->get();
        $routes = Auth::user()->company()->routes()->get();
        $days = $this->dayNames;
        return view('admin.rides.edit', compact('buses', 'routes', 'days', 'ride'));
    }
public function edit ( Ride $ ride ) { $ buses = Auth :: user ( ) -> company ( ) -> buses ( ) -> get ( ) ; $ routes = Auth :: user ( ) -> company ( ) -> routes ( ) -> get ( ) ; $ days = $ this -> dayNames ; return view ( 'admin.rides.edit' , compact ( 'buses' , 'routes' , 'days' , 'ride' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
//