Created
July 22, 2020 16:08
-
-
Save ssi-anik/b54e1fa17c9909cf6687bf31d170dc43 to your computer and use it in GitHub Desktop.
A: jwt-auth with otp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Contracts\Auth\Authenticatable; | |
use Illuminate\Database\Eloquent\Model; | |
use Tymon\JWTAuth\Contracts\JWTSubject; | |
class Member extends Model implements JWTSubject, Authenticatable | |
{ | |
public function getJWTIdentifier () { | |
return $this->getKey(); | |
} | |
public function getJWTCustomClaims () { | |
return []; | |
} | |
public function getAuthIdentifierName () { | |
// TODO: Implement getAuthIdentifierName() method. | |
} | |
public function getAuthIdentifier () { | |
// TODO: Implement getAuthIdentifier() method. | |
} | |
public function getAuthPassword () { | |
// TODO: Implement getAuthPassword() method. | |
} | |
public function getRememberToken () { | |
// TODO: Implement getRememberToken() method. | |
} | |
public function setRememberToken ($value) { | |
// TODO: Implement setRememberToken() method. | |
} | |
public function getRememberTokenName () { | |
// TODO: Implement getRememberTokenName() method. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment