0👍
✅
You don’t have to create a new page, however, unless you use something like Vueify, to write single file components, you may want to. It will be easier.
The same way you created your list view, ajax call and index api, you can create a view, ajax call and api, to show our posts (using post ids).
Your api response should send all the data you need to display, including the slug.
Based on your github repository, create a route like this for your api, where id
is the post id:
Route::resource('show/{id}', 'PagesController@show');
Source:stackexchange.com