I am trying to create a RESTful API with Laravel using the PhpStorm server and artisan, but when I try to test using the Rest Client, I get this error:

Now I only write the GET method and get the correct output in my browser with the address http://localhost:8000/users
This is my code:
routes.php
Route::resource('users','UserController');
UserController.php
public function index()
{
return \Response::json(User::all());
}
I also tried adding json to the request window

source
share