home/bumble2020/domainwizard.net/app/Models/User.php000064400000002720150030406730016154 0ustar00 */ protected $fillable = [ 'name', 'email', 'password', 'avatar', 'admin', 'super_admin', 'email_verified_at' ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function canAccessFilament() : bool { return $this->admin || $this->super_admin; } public function premium() : bool { return $this->admin || $this->super_admin || $this->subscription_id != NULL || $this->allow_till > now(); } public function checkout() { return $this->hasOne(Checkout::class); } }