Custom payload with Laravel JWT
//load user place your code for load user $user = User::find( $user_id ); // if you don't have user id then also you can used. $user = User::where( 'email', $tokenPayload->email )->first(); $payloadable = [ 'id' => $tokenPayload->id, ...
Aug 28, 20211 min read26