app/Http/Controllers/Admin/RideController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Ride  $ride
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Ride $ride)
    {
        $ride->schedule()->delete();
        $ride->delete();
        return redirect()->route('admin.rides.index')->withSuccess('Ride deleted successfully');
    }
public function destroy ( Ride $ ride ) { $ ride -> schedule ( ) -> delete ( ) ; $ ride -> delete ( ) ; return redirect ( ) -> route ( 'admin.rides.index' ) -> withSuccess ( 'Ride deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .
//