Answer the question
In order to leave comments, you need to log in
Give data from the database only to the one who created it?
How or with the help of what is it better to make the data so that only the user who added it to the database can edit the data?
Can this somehow be organized using Laravel ?
Answer the question
In order to leave comments, you need to log in
Well the simplest
if(Auth::user()->id === $db->user_id){
//создал, может редактировать
}else{
// не может редактировать
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question