src/Http/Controllers/Adminarea/TenantsController.php
public function destroy(Tenant $tenant)
    {
        $tenant->delete();

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

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

@param \Cortex\Tenants\Models\Tenant $tenant

@throws \Exception

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