Files
spa-api/app/User.php

35 lines
800 B
PHP
Raw Normal View History

2014-08-11 10:13:20 -05:00
<?php namespace App;
2013-01-11 15:14:07 -06:00
2014-11-07 10:00:30 -06:00
use Illuminate\Auth\Authenticatable;
2014-08-29 13:58:51 +02:00
use Illuminate\Database\Eloquent\Model;
2014-11-07 10:00:30 -06:00
use Illuminate\Auth\Passwords\CanResetPassword;
2014-11-10 11:51:42 -06:00
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
2014-10-12 12:20:01 -05:00
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
2013-01-11 15:14:07 -06:00
2014-11-10 11:51:42 -06:00
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
2013-01-11 15:14:07 -06:00
2014-11-07 10:00:30 -06:00
use Authenticatable, CanResetPassword;
2014-05-02 09:28:10 -05:00
2013-01-11 15:14:07 -06:00
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
2014-12-01 21:59:46 -06:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['name', 'email', 'password'];
2013-01-11 15:14:07 -06:00
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
2014-08-11 10:13:20 -05:00
protected $hidden = ['password', 'remember_token'];
2013-01-11 15:14:07 -06:00
2014-03-15 10:14:55 +00:00
}