public function isMaxLimitOfCheckout() { $count = $this->user->checkoutHistories()->notReturned()->count(); if ($count >= 2) { return false; } return true; }