I am calling this function:
Route::get('/person', function (){
$person=[
'first_name'=>'dildar',
'last_name'=>'Muhammad',
];
return $person;
});
and I browse https://astrolabe.ml/api/person
but I got error not found page 404
it does work on new laravel project but I did not found any clue from that why it does not my work.
2
Answers
emphasized texttry to replace this
to
Edit:
remove everything and try this:
HomeController.php
then run:
finally go to
www.example.com/api/test
Update your code