DEV Community

Discussion on: How to create an API with laravel resources

Collapse
 
tngeene profile image
Ted Ngeene • Edited

Hi..thanks for following through. the error might be because you haven't defined the login route in routes\api.php file. copy-paste the following and tell me if it fixes the issue Route::post('login', 'AuthController@login');

Collapse
 
bangtranit profile image
bangtranit

Nice. Thanks for reply.
As the your suggest i added login route to the api.php and it was resolved.
thank you so much.

Thread Thread
 
tngeene profile image
Ted Ngeene • Edited

You're welcome... I'll be uploading the rest of the series as well as how to integrate the whole API with a vue.js front end