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;
use Silber\Bouncer\Database\HasRolesAndAbilities;
class User extends Authenticatable
{
use HasRolesAndAbilities;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'fname', 'name', 'email', 'password', 'biography',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
public function departments()
return $this->belongsToMany('App\Departments');
}