dimanche 21 juin 2020

Is there any way to show post from permalink in laravel?

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 enter image description here

How can i do t?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/318iu8V
via IFTTT

Aucun commentaire:

Enregistrer un commentaire