Advertisement
SturmB

ACS - User.php

Apr 29th, 2021
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.37 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Notifications\Notifiable;
  6. use Illuminate\Foundation\Auth\User as Authenticatable;
  7.  
  8. /**
  9.  * App\User
  10.  *
  11.  * @property int $id
  12.  * @property int|null $role_id
  13.  * @property string $name
  14.  * @property string $email
  15.  * @property string|null $avatar
  16.  * @property string $password
  17.  * @property string|null $remember_token
  18.  * @property string|null $settings
  19.  * @property \Illuminate\Support\Carbon|null $created_at
  20.  * @property \Illuminate\Support\Carbon|null $updated_at
  21.  * @property mixed $locale
  22.  * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
  23.  * @property-read int|null $notifications_count
  24.  * @property-read \TCG\Voyager\Models\Role|null $role
  25.  * @property-read \Illuminate\Database\Eloquent\Collection|\TCG\Voyager\Models\Role[] $roles
  26.  * @property-read int|null $roles_count
  27.  * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
  28.  * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
  29.  * @method static \Illuminate\Database\Eloquent\Builder|User query()
  30.  * @method static \Illuminate\Database\Eloquent\Builder|User whereAvatar($value)
  31.  * @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
  32.  * @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
  33.  * @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
  34.  * @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
  35.  * @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
  36.  * @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
  37.  * @method static \Illuminate\Database\Eloquent\Builder|User whereRoleId($value)
  38.  * @method static \Illuminate\Database\Eloquent\Builder|User whereSettings($value)
  39.  * @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
  40.  * @mixin \Eloquent
  41.  */
  42. class User extends \TCG\Voyager\Models\User
  43. {
  44.     use Notifiable;
  45.  
  46.     /**
  47.      * The attributes that are mass assignable.
  48.      *
  49.      * @var array
  50.      */
  51.     protected $fillable = [
  52.         'name', 'email', 'password',
  53.     ];
  54.  
  55.     /**
  56.      * The attributes that should be hidden for arrays.
  57.      *
  58.      * @var array
  59.      */
  60.     protected $hidden = [
  61.         'password', 'remember_token',
  62.     ];
  63. }
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement