src/Http/Controllers/Adminarea/TagsController.php
public function destroy(Tag $tag)
    {
        $tag->delete();

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

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

@param \Cortex\Tags\Models\Tag $tag

@throws \Exception

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