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