Files
c-cms-legacy/app/User.php
TheGamecraft 54cdc12680 ALPHA 3.0.1h
2018-08-20 13:12:20 -04:00

41 lines
722 B
PHP

<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
public function logs()
{
return $this->hasMany(Log::class);
}
public function fullname()
{
$fullname = $this->lastname.' '.$this->firstname;
return $fullname;
}
}