mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-07 06:16:43 +01:00
Upgrade User.php to 5.1
This commit is contained in:
parent
a3042c6288
commit
14125fb5c6
1 changed files with 4 additions and 2 deletions
|
@ -2,17 +2,19 @@
|
|||
|
||||
use Illuminate\Auth\Authenticatable;
|
||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
||||
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class User extends Model
|
||||
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
|
||||
{
|
||||
use Authenticatable, CanResetPassword;
|
||||
|
||||
protected $table = 'users';
|
||||
protected $hidden = ['password_hash', 'password_salt', 'bio'];
|
||||
protected $hidden1 = ['password_hash', 'password_salt', 'bio'];
|
||||
|
||||
public function scopeUserDetails($query)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue