I
I
Ivan Ivanov2019-12-20 21:19:57
Laravel
Ivan Ivanov, 2019-12-20 21:19:57

How to make API on laravel?

You need to make a simple request-response API. Where do you need to send a request to get a response? Created a route:

Route::post('test', function (Request $request) {
    return response()->json('1405c6f7');
});

Where to go to get a response from the server?
just the domain / test does not work (the POST method, it is the API request, and not through the browser I check)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question