src/Http/Controllers/Adminarea/ManagersController.php
public function destroy(Manager $manager)
    {
        $manager->delete();

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

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

@param \Cortex\Auth\Models\Manager $manager

@throws \Exception

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