thanks for great tutorial.
i just called the create post api by postman but it return for me this error. How can i resolve this error? Please help me. Thank you
<!DOCTYPE html>
<!--
InvalidArgumentException: Route [login] not defined. in file /Users/bang.tran/Desktop/phplaravelproject/jwtauth-laravel/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 388
Stack trace:
Passionate about education, fintech, Python, Javascript, progressive growth, and full-stack development.
Sometimes I write code, sometimes I just write.
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');
Passionate about education, fintech, Python, Javascript, progressive growth, and full-stack development.
Sometimes I write code, sometimes I just write.
thanks for great tutorial.
i just called the create post api by postman but it return for me this error. How can i resolve this error? Please help me. Thank you
<!DOCTYPE html>
<!--
InvalidArgumentException: Route [login] not defined. in file /Users/bang.tran/Desktop/phplaravelproject/jwtauth-laravel/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 388
Stack trace:
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 issueRoute::post('login', 'AuthController@login');
Nice. Thanks for reply.
As the your suggest i added login route to the api.php and it was resolved.
thank you so much.
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