In Laravel (5.4) I can login by going to {domain}/login
and submitting the login form. This works fine.
What I want though, is to be able to send a request like so:
{domain}/login?email=admin@example.com&password=pass1234
and if user is authenticated, a json response would return with the api_token for that specific user, but if the user is rejected, a json response with the message "User login failed".
Is it possible to do this in Laravel as of yet? Or do I have to implement my own method?