34 lines
770 B
PHP
34 lines
770 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Auth\Authenticatable;
|
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
|
use Illuminate\Contracts\Auth\Authenticatable as AuthenticableInterface;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Foundation\Auth\Access\Authorizable;
|
|
|
|
/**
|
|
* Class User
|
|
*/
|
|
class User extends Model implements AuthenticableInterface
|
|
{
|
|
use Authenticatable, Authorizable, CanResetPassword;
|
|
public $timestamps = false;
|
|
protected $fillable = [
|
|
'email',
|
|
'username',
|
|
'password',
|
|
'name',
|
|
];
|
|
protected $guarded = [];
|
|
/**
|
|
* The attributes excluded from the model's JSON form.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = [
|
|
'password',
|
|
'remember_token',
|
|
];
|
|
} |