Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 333 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

    namespace App\Models;

    // use Illuminate\Contracts\Auth\MustVerifyEmail;
    use Illuminate\Database\Eloquent\Factories\HasFactory;
    use Illuminate\Foundation\Auth\User as Authenticatable;
    use Illuminate\Notifications\Notifiable;
    use Laravel\Sanctum\HasApiTokens;

    /**
 * App\Models\BackendUser
 *
 * @property int $id
 * @property string $name
 * @property string $email
 * @property string $mail
 * @property \Illuminate\Support\Carbon|null $email_verified_at
 * @property string $password
 * @property string $dir
 * @property string $description
 * @property string $session_data
 * @property int $save_session
 * @property string $view_data
 * @property string $datenquellen
 * @property string $navigation_pos
 * @property string $ignoreRemoteHosts
 * @property string $remember_token
 * @property int|null $host_group
 * @property string $phone
 * @property string $fax
 * @property int $employee
 * @property int $terminpflege
 * @property int $admin
 * @property int $app_user
 * @property int $rank
 * @property string|null $last_login
 * @property string $ip
 * @property string $created_by
 * @property string $updated_by
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string|null $google2fa_secret
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
 * @property-read int|null $notifications_count
 * @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Sanctum\PersonalAccessToken> $tokens
 * @property-read int|null $tokens_count
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser query()
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereAdmin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereAppUser($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereCreatedBy($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDatenquellen($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDir($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmailVerifiedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmployee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereFax($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereGoogle2faSecret($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereHostGroup($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereIgnoreRemoteHosts($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereIp($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereLastLogin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereMail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereNavigationPos($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser wherePassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereRank($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereRememberToken($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereSaveSession($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereSessionData($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereTerminpflege($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereUpdatedBy($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereViewData($value)
 * @mixin \Eloquent
 */
class BackendUser extends Authenticatable
    {
        use HasApiTokens, HasFactory, Notifiable;


        /**
         * @var string
         */
        protected $guarded = "admin";
        /**
         * The attributes that are mass assignable.
         *
         * @var array<int, string>
         */
        protected $fillable = [
            'name',
            'email',
            'password',
            'rank',
            'admin',
            'employee',
            'app_user',
            'description',
            'save_session',
            'navigation_pos',
            'phone',
            'fax',
            'mail',
            'ignoreRemoteHosts',
            'terminpflege',
        ];

        /**
         * The attributes that should be hidden for serialization.
         *
         * @var array<int, string>
         */
        protected $hidden = [
            //'password',
            'remember_token',
        ];

        /**
         * The attributes that should be cast.
         *
         * @var array<string, string>
         */
        protected $casts = [
            'email_verified_at' => 'datetime',
        ];
    }