さささ…
22
app/User.php
|
@ -2,11 +2,11 @@
|
|||
|
||||
namespace App;
|
||||
|
||||
use Tymon\JWTAuth\Contracts\JWTSubject;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
class User extends Authenticatable implements JWTSubject {
|
||||
class User extends Authenticatable {
|
||||
use Notifiable;
|
||||
|
||||
/**
|
||||
|
@ -26,23 +26,5 @@ class User extends Authenticatable implements JWTSubject {
|
|||
protected $hidden = [
|
||||
'password', 'salt', 'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the identifier that will be stored in the subject claim of the JWT.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getJWTIdentifier() {
|
||||
return $this->getKey(); // Eloquent Model method
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a key value array, containing any custom claims to be added to the JWT.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getJWTCustomClaims() {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
?>
|
変更前 幅: | 高さ: | サイズ: 5.6 KiB 変更後 幅: | 高さ: | サイズ: 5.6 KiB |
変更前 幅: | 高さ: | サイズ: 3.6 KiB 変更後 幅: | 高さ: | サイズ: 3.6 KiB |
変更前 幅: | 高さ: | サイズ: 55 KiB 変更後 幅: | 高さ: | サイズ: 55 KiB |
変更前 幅: | 高さ: | サイズ: 162 KiB 変更後 幅: | 高さ: | サイズ: 162 KiB |
変更前 幅: | 高さ: | サイズ: 15 KiB 変更後 幅: | 高さ: | サイズ: 15 KiB |
変更前 幅: | 高さ: | サイズ: 3.0 KiB 変更後 幅: | 高さ: | サイズ: 3.0 KiB |