From 2f63d005a6d05ba2954470b7060a8a1c9580c821 Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Mon, 31 Aug 2020 15:54:01 +0200 Subject: [PATCH] acc message --- app/User.php | 2 +- resources/views/account/index.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/User.php b/app/User.php index 7faf369..4836338 100644 --- a/app/User.php +++ b/app/User.php @@ -316,7 +316,7 @@ class User extends Authenticatable implements MustVerifyEmail * @return bool * Checks if has any valid subscription */ - public function geHasValidSubscriptionAttribute(): bool + public function getHasValidSubscriptionAttribute(): bool { return $this->hasValidSubscription(); } diff --git a/resources/views/account/index.blade.php b/resources/views/account/index.blade.php index 91177cf..f2fefe4 100644 --- a/resources/views/account/index.blade.php +++ b/resources/views/account/index.blade.php @@ -9,9 +9,9 @@ Merci de remplir ce formulaire pour finaliser la création de votre compte afin de pouvoir accéder aux contenus Prescription Santé. @else - @if($user->isSubscribed) + @if($user->hasValidSubscription())
- Votre compte est actif, vous pouvez accéder aux contenus Prescription Santé Quotidien. + Votre abonnement est actif, vous pouvez accéder aux contenus Prescription Santé Quotidien.
@elseif($user->onTrial()) -- 2.39.5