public function delete(Redirect $redirect)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_DELETE);

        $redirect->delete();

        return $this->jsonResponseSuccess([
            'message' => $this->transNotification('deleted', [], $redirect->toArray())
        ]);
    }
public function delete(Redirect $redirect)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_DELETE);

        $redirect->delete();

        return $this->jsonResponseSuccess([
            'message' => $this->transNotification('deleted', [], $redirect->toArray())
        ]);
    }
public function delete ( Redirect $ redirect ) { $ this -> authorize ( RedirectsPolicy :: PERMISSION_DELETE ) ; $ redirect -> delete ( ) ; return $ this -> jsonResponseSuccess ( [ 'message' => $ this -> transNotification ( 'deleted' , [ ] , $ redirect -> toArray ( ) ) ] ) ; }
Delete a redirect record.

@param  \Arcanesoft\Seo\Models\Redirect  $redirect

@return \Illuminate\Http\JsonResponse
Delete a redirect record .