I have a column in a database where the I want to search user_id and mark all fields when I get the result. I am not sure how to mark all the fields when I have to data.
user_id
my query :
$user = PrivateMessage::where('recipient_id', '=', $request->authedUser->id)->get();
then I want to set PrivateMessage->read = 1
PrivateMessage->read = 1
how would I do this
Please sign in or create an account to participate in this conversation.
Reply to
Use Markdown with GitHub-flavored code blocks.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
Mark all fields from a query
I have a column in a database where the I want to search
user_id
and mark all fields when I get the result. I am not sure how to mark all the fields when I have to data.my query :
then I want to set
PrivateMessage->read = 1
how would I do this