for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TaskManager;
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',
];
protected $guarded = ['token'];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
public function setPasswordAttribute($value){
$this->attributes['password'] = bcrypt($value);
}
public function apikeys(){
return $this->hasOne('\App\ApiKeys');
public function tasks(){
return $this->hasMany('\TaskManager\Tasks');