Combination of initial files and some new code for login and user registration.

This commit is contained in:
James Cole
2014-06-29 22:12:33 +02:00
parent a3a30bd5e1
commit 5d430e7dad
72 changed files with 9779 additions and 913 deletions
+24 -14
View File
@@ -5,22 +5,32 @@ use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
class User extends Elegant implements UserInterface, RemindableInterface
{
use UserTrait, RemindableTrait;
use UserTrait, RemindableTrait;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('password', 'remember_token');
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
public static $rules
= [
'email' => 'email|unique:users,email',
'migrated' => 'numeric|between:0,1',
'password' => 'between:60,60',
'verification' => 'between:32,32',
];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('password', 'remember_token');
}