User.php 800 Bytes
Newer Older
1
<?php namespace App;
2

Taylor Otwell committed
3
use Illuminate\Auth\Authenticatable;
Taylor Otwell committed
4
use Illuminate\Database\Eloquent\Model;
Taylor Otwell committed
5
use Illuminate\Auth\Passwords\CanResetPassword;
Taylor Otwell committed
6
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
7
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
8

Taylor Otwell committed
9
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
10

Taylor Otwell committed
11
	use Authenticatable, CanResetPassword;
12

13 14 15 16 17 18 19 20
	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'users';

	/**
Taylor Otwell committed
21 22 23 24 25 26 27
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = ['name', 'email', 'password'];

	/**
28 29 30 31
	 * The attributes excluded from the model's JSON form.
	 *
	 * @var array
	 */
32
	protected $hidden = ['password', 'remember_token'];
33

Graham Campbell committed
34
}