I have a project in Laravel 5.2
and now I have to make the APIs
for that. I tried to hit the localhost/myproject/login
via postman as a post request with the parameters but it returns me the HTML
in return. I have used Laravel's auth scaffolding for the authorization.
I am unable to find postLogin
function in my project.
I have separated the routes but how can I change the existing functions for the API?
Route::group(array('prefix' => 'api/v1'), function()
{
Route::post('login', 'AuthController@postLogin');
});