[Vuejs]-How do Laravel get GET request made by vue.js?

0👍

$req->all() is empty because no data is passed!

A GET request only evaluates data passed as query-string in the URI. It acts like the data parameter is null.

You could send your data as query (like "localhost/kubikt2/public/api/login?email"+email+"&someMore"+someMore) or use a POST request (which would be the better option here)

👤manniL

Leave a comment