/**
  * @param User $user
  *
  * @return bool
  */
 public function destroy($user)
 {
     return $user->can('blog.category.destroy');
 }
Exemple #2
0
 /**
  * @param User $user
  * @param Post $post
  *
  * @return bool
  */
 public function destroy($user, $post)
 {
     return $user->owns($post) || $user->can('blog.post.destroy');
 }
 /**
  * @param User     $user
  * @param Category $category
  *
  * @return bool
  */
 public function destroy($user, $category)
 {
     return $user->owns($category) || $user->can('support.category.destroy');
 }
Exemple #4
0
 /**
  * @param User $user
  * @param Menu $menu
  *
  * @return bool
  */
 public function destroy($user, $menu)
 {
     return $user->can('menu.item.destroy');
 }