for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
Illuminate\Notifications\Notifiable
Tests\User
$email
$phone_number
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'password', 'remember_token',
* Password mulator.
* Encrypt password while storing.
* @param $value
* @return void
public function setPasswordAttribute($value)
$this->attributes['password'] = bcrypt($value);
}