Пример #1
0
 public function isMaxLimitOfCheckout()
 {
     $count = $this->user->checkoutHistories()->notReturned()->count();
     if ($count >= 2) {
         return false;
     }
     return true;
 }