jonnybarnes.uk/app/Models/User.php

59 lines
1.5 KiB
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
declare(strict_types=1);
2017-12-19 16:00:42 +00:00
namespace App\Models;
2016-05-19 15:01:28 +01:00
2020-09-13 17:00:45 +01:00
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
2016-05-19 15:01:28 +01:00
use Illuminate\Foundation\Auth\User as Authenticatable;
2020-09-13 17:00:45 +01:00
use Illuminate\Notifications\DatabaseNotification;
use Illuminate\Notifications\DatabaseNotificationCollection;
2019-10-27 16:29:15 +00:00
use Illuminate\Notifications\Notifiable;
2020-09-13 17:00:45 +01:00
use Illuminate\Support\Carbon;
2020-02-22 12:09:26 +00:00
2020-02-22 11:06:43 +00:00
/**
2020-09-13 17:13:47 +01:00
* App\Models\User
2020-02-22 11:06:43 +00:00
*
* @property int $id
* @property string $name
* @property string $password
* @property string|null $remember_token
2020-09-13 17:00:45 +01:00
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property-read DatabaseNotificationCollection|DatabaseNotification[] $notifications
2020-02-22 11:06:43 +00:00
* @property-read int|null $notifications_count
2020-09-13 17:00:45 +01:00
* @method static Builder|User newModelQuery()
* @method static Builder|User newQuery()
* @method static Builder|User query()
* @method static Builder|User whereCreatedAt($value)
* @method static Builder|User whereId($value)
* @method static Builder|User whereName($value)
* @method static Builder|User wherePassword($value)
* @method static Builder|User whereRememberToken($value)
* @method static Builder|User whereUpdatedAt($value)
* @mixin Eloquent
2020-02-22 11:06:43 +00:00
*/
2016-05-19 15:01:28 +01:00
class User extends Authenticatable
{
2016-09-06 16:40:39 +01:00
use Notifiable;
2016-05-19 15:01:28 +01:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'password',
2016-05-19 15:01:28 +01:00
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}