Nina Media Laravel API route
Hi, I am trying to add a route to the api which gets data from a controller and returns a json. can someone please explain to me how I could add such a thing. or provide a simple example?
there is an example which looks like this:
Route::get('/user', function (Request $request) { return $request->user(); })->middleware('auth:api');
but It doesn't seem to work using Postman
thank you very much!