I just created a fresh Laravel project in my localhost directory and created a Laravel route in the api.php file.
Route::post('/home', 'HomeAPI@index');
However, when I try to send a post request to the link localhost/home from Postman, it gives the following error:
Sorry, the page you are looking for could not be found.
1/1 NotFoundHttpException in RouteCollection.php line 161:
How do I access my /home route?