1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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;
- }
- }
|