src/Http/Controllers/Adminarea/ServicesController.php
public function destroy(Service $service)
    {
        $service->delete();

        return intend([
            'url' => route('adminarea.services.index'),
            'with' => ['warning' => trans('cortex/foundation::messages.resource_deleted', ['resource' => trans('cortex/bookings::common.service'), 'identifier' => $service->name])],
        ]);
    }
public function destroy(Service $service)
    {
        $service->delete();

        return intend([
            'url' => route('adminarea.services.index'),
            'with' => ['warning' => trans('cortex/foundation::messages.resource_deleted', ['resource' => trans('cortex/bookings::common.service'), 'identifier' => $service->name])],
        ]);
    }
public function destroy ( Service $ service ) { $ service -> delete ( ) ; return intend ( [ 'url' => route ( 'adminarea.services.index' ) , 'with' => [ 'warning' => trans ( 'cortex/foundation::messages.resource_deleted' , [ 'resource' => trans ( 'cortex/bookings::common.service' ) , 'identifier' => $ service -> name ] ) ] , ] ) ; }
Destroy given service.

@param \Cortex\Bookings\Models\Service $service

@throws \Exception

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
Destroy given service .