for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password','isCreator','isAdmin','isModer','isActive',
];
* The attributes excluded from the model's JSON form.
protected $hidden = [
'password', 'remember_token',
public function backer(){
return $this->hasOne('App\Backer');
}
public function comment(){
return $this->hasMany('App\Comment');
public function creator(){
return $this->hasOne('App\Creator');