moving laravel 4 into develop branch.

This commit is contained in:
Taylor Otwell
2013-01-11 15:14:07 -06:00
parent 63bf89efd5
commit 5d99f9f1d6
463 changed files with 1283 additions and 65186 deletions

41
app/models/User.php Normal file
View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Auth\UserInterface;
class User extends Eloquent implements UserInterface {
/**
* 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');
/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifier()
{
return $this->getKey();
}
/**
* Get the password for the user.
*
* @return string
*/
public function getAuthPassword()
{
return $this->password;
}
}