Skip to content

Commit 6983f4d

Browse files
committed
De-clutter default models.
1 parent 443cad5 commit 6983f4d

File tree

1 file changed

+4
-61
lines changed

1 file changed

+4
-61
lines changed

app/models/User.php

Lines changed: 4 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?php
22

3+
use Illuminate\Auth\UserTrait;
34
use Illuminate\Auth\UserInterface;
5+
use Illuminate\Auth\RemindableTrait;
46
use Illuminate\Auth\Reminders\RemindableInterface;
57

68
class User extends Eloquent implements UserInterface, RemindableInterface {
79

10+
use UserTrait, RemindableTrait;
11+
812
/**
913
* The database table used by the model.
1014
*
@@ -19,65 +23,4 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
1923
*/
2024
protected $hidden = array('password');
2125

22-
/**
23-
* Get the unique identifier for the user.
24-
*
25-
* @return mixed
26-
*/
27-
public function getAuthIdentifier()
28-
{
29-
return $this->getKey();
30-
}
31-
32-
/**
33-
* Get the password for the user.
34-
*
35-
* @return string
36-
*/
37-
public function getAuthPassword()
38-
{
39-
return $this->password;
40-
}
41-
42-
/**
43-
* Get the token value for the "remember me" session.
44-
*
45-
* @return string
46-
*/
47-
public function getRememberToken()
48-
{
49-
return $this->remember_token;
50-
}
51-
52-
/**
53-
* Set the token value for the "remember me" session.
54-
*
55-
* @param string $value
56-
* @return void
57-
*/
58-
public function setRememberToken($value)
59-
{
60-
$this->remember_token = $value;
61-
}
62-
63-
/**
64-
* Get the column name for the "remember me" token.
65-
*
66-
* @return string
67-
*/
68-
public function getRememberTokenName()
69-
{
70-
return 'remember_token';
71-
}
72-
73-
/**
74-
* Get the e-mail address where password reminders are sent.
75-
*
76-
* @return string
77-
*/
78-
public function getReminderEmail()
79-
{
80-
return $this->email;
81-
}
82-
8326
}

0 commit comments

Comments
 (0)