Cron Jobs, Reminder, Fonts, Members / Wizard / Price, Credit and Promotion
This commit is contained in:
parent
a0f4eda6ea
commit
6167273a48
204 changed files with 8746 additions and 215 deletions
15
app/User.php
15
app/User.php
|
|
@ -230,6 +230,17 @@ class User extends Authenticatable
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isPasswort(){
|
||||
if($this->password == env('APP_KEY')){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
|
|
@ -305,7 +316,7 @@ class User extends Authenticatable
|
|||
|
||||
public function isRenewalAccount(){
|
||||
if ($this->payment_account) {
|
||||
return Carbon::parse($this->payment_account)->modify('-'.(config('main.renewal_days')+1).' days')->lt(Carbon::now());
|
||||
return Carbon::parse($this->payment_account)->modify('-'.(config('main.renewal_days')).' days')->lt(Carbon::now());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -459,7 +470,7 @@ class User extends Authenticatable
|
|||
$this->userImage = $this->id.'/avatar.jpg';
|
||||
}
|
||||
if(\Storage::disk('user')->has($this->id.'/avatar.png')){
|
||||
$this->userImage = $this->id.'/avatar.jpg';
|
||||
$this->userImage = $this->id.'/avatar.png';
|
||||
}
|
||||
return $this->userImage;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue