Esempio n. 1
0
 public function create(User $user, Review $review)
 {
     return $user->can('reply', $review);
 }
Esempio n. 2
0
 public function create(User $user, Order $order, Reviewable $reviewable)
 {
     return $user->can('review', [$reviewable, $order]);
 }