public function destroy($id)
    {
        $permission = $this->repository->findWithoutFail($id);

        if (empty($permission)) {
            return $this->sendError('Permission not found');
        }

        $this->repository->delete($id);

        return $this->sendResponse($permission, 'Permission deleted successfully.');
    }
public function destroy($id)
    {
        $permission = $this->repository->findWithoutFail($id);

        if (empty($permission)) {
            return $this->sendError('Permission not found');
        }

        $this->repository->delete($id);

        return $this->sendResponse($permission, 'Permission deleted successfully.');
    }
public function destroy ( $ id ) { $ permission = $ this -> repository -> findWithoutFail ( $ id ) ; if ( empty ( $ permission ) ) { return $ this -> sendError ( 'Permission not found' ) ; } $ this -> repository -> delete ( $ id ) ; return $ this -> sendResponse ( $ permission , 'Permission deleted successfully.' ) ; }
Remove the specified Permission from storage.

@param  int $id

@return JsonResponse
Remove the specified Permission from storage .