Normally we show single post using below method. This is the route <a href="">
and Route::get('/test/{slug}','TestController@index');
This is the controller method
public function index(Blog $slug)
{
return $slug;
}
But I don't need like that. I have generated permalink and save it into database in slug field. Now i want to show post from this permalink. See my table
How can i do t?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire