Don't allow user to change others posts

Posted 3 years ago by Rmpalija

Hello, I'am begginer in laravel 5 and i have one question. I watch all Laravel 5 fundamentals, and it's great serial, but how to configure, that user can only edit post that he write?

Something like UserID from USERS must be equal userId from Articles and then user can edit that post? Is there any example please?

Thank you

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.