generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Discussed in #15
Originally posted by bast111 April 6, 2022
Hi guys, being fairly new to Laravel i wanted to start implement a strapi backend following that tutorial here
All worked fine at first, I created a route to fetch all my localites
Route::get('/test', function () {
$strapi = new LaravelStrapi();
return $localites = $strapi->collection('api/localites');
});
So I kept going and tried to create the route for one item
//Route pour 1 localite
Route::get('/test/{id}', function ($id) {
$strapi = new LaravelStrapi();
return $localites = $strapi->entry('api/localites', $id);
});
I can see that the api has been called successfully but I don't understand what is the problem

If anyonce can give me some insights would be really appreciated :) Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

