Laravel 8 JWT with Login Page

Viewed 139
public function login(Request $request) 
{
    $email = $request->email;
    $password = $request->password;

    $data = [
        'email' => $email, 
        'password' => $password, 
    ];

    // I want to create jwt token for the above code
}

I want to create jwt token only for the above data using web.php route

0 Answers
Related