firefly-iii/app/models/User.php

39 lines
906 B
PHP
Raw Normal View History

2014-06-28 02:41:44 -05:00
<?php
use Illuminate\Auth\Reminders\RemindableInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\UserTrait;
2014-06-28 02:41:44 -05:00
class User extends Elegant implements UserInterface, RemindableInterface
{
use UserTrait, RemindableTrait;
public static $rules
= [
'email' => 'required|email|unique:users,email',
'migrated' => 'required|numeric|between:0,1',
'password' => 'required|between:60,60',
'reset' => 'between:32,32',
];
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
2014-07-03 02:43:12 -05:00
protected $hidden = array('remember_token');
2014-06-28 02:41:44 -05:00
public function accounts()
{
return $this->hasMany('Account');
}
2014-07-03 02:43:12 -05:00
}