app/Http/Controllers/BookingController.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()
    {
        $rides = collect();
        if (request('start') && request('end') && request('travel_date')) {
            $rides = $this->rideService->getRidesByTerminals(request('start'), request('end'), request('travel_date'));
        }
        $terminals = Terminal::all();
        return view('bookings.create', compact('rides', 'terminals'));
    }
public function create ( ) { $ rides = collect ( ) ; if ( request ( 'start' ) && request ( 'end' ) && request ( 'travel_date' ) ) { $ rides = $ this -> rideService -> getRidesByTerminals ( request ( 'start' ) , request ( 'end' ) , request ( 'travel_date' ) ) ; } $ terminals = Terminal :: all ( ) ; return view ( 'bookings.create' , compact ( 'rides' , 'terminals' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//