I want to open the default authentication provided by Laravel to my REST API. For this I am creating POST http://localhost:8080/api/login
:
// In api.php
Route::post('/login', 'Auth\LoginController@login');
However, sending a POST request to this address gives me a runtime error in /media/Data/workspaces/git/mahlzeit/api/vendor/laravel/framework/src/Illuminate/Http/Request.php
:
RuntimeException
Session store not set on request.
The payload I am sending is
{"name": "test", "password": "123456", "email": "test@test.com"}
although I don't think that's important here.
So.. the standard login for laravel is working - I don't see what I'm missing here.