belykia
1 year ago

Allow edit if article belongs to user ?

Posted 1 year ago by belykia

Hello Everybody : I have done many times trying to get the solution to the following Discussion : i made a form with some fields , then i entered some data in it .in the page where i displayed it post.blade.php , i added an edit button ,it works, so i tried a lot of times to make the edit visible only to the login user that added his own data to the form , using this documentation :(https://laravel.com/docs/5.6/authorization) ,adding even onetomany between the user table and the form table that i made , somebody can explain me the different steps to make it ?

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