diff --git a/app/Models/User.php b/app/Models/User.php index 9c737c52..bba306a0 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -31,7 +31,9 @@ use Laravel\Passport\HasApiTokens; * @property string $timezone * @property bool $is_placeholder * @property Weekday $week_start + * @property string|null $profile_photo_path * @property-read Organization $currentTeam + * @property-read string $profile_photo_url * @property Collection $organizations * @property Collection $timeEntries * @@ -97,15 +99,6 @@ class User extends Authenticatable implements FilamentUser, MustVerifyEmail 'week_start' => Weekday::Monday, ]; - /** - * The accessors to append to the model's array form. - * - * @var array - */ - protected $appends = [ - 'profile_photo_url', - ]; - public function canAccessPanel(Panel $panel): bool { return in_array($this->email, config('auth.super_admins', []), true) && $this->hasVerifiedEmail(); diff --git a/phpstan.neon b/phpstan.neon index 14f909b7..ceb6bdff 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,3 +10,5 @@ parameters: level: 7 checkOctaneCompatibility: true + checkModelProperties: true + noEnvCallsOutsideOfConfig: true