Files
newznab-tmux/app/Models/User.php
T
2017-09-21 13:36:33 +02:00

54 lines
911 B
PHP

<?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
const CREATED_AT = 'createddate';
const UPDATED_AT = 'updateddate';
/**
* @var string
*/
protected $table = 'users';
/**
* @var bool
*/
protected $dateFormat = false;
/**
* @var array
*/
protected $fillable = [
'username',
'password',
'email',
'user_roles_id',
'createddate',
'updateddate',
'host',
'rsstoken',
'invites',
'invitedby',
'userseed',
'notes',
];
/**
* @var array
*/
protected $hidden = ['password', 'rsstoken'];
public function role()
{
return $this->belongsTo('App\Models\UserRole', 'user_roles_id');
}
}