vendredi 28 août 2015

Laravel authentication route

I've a route with a parameter that´s an int. When a user goes to for example localhost/public/article/1 I want to show that article. But I don't want to show for example localhost/public/article/2 because that's from someone else. How do I do this? So I only want to show an article if the person is allowed to see it.

(The person is logged in)



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1MZlw28
via IFTTT

Aucun commentaire:

Enregistrer un commentaire