What are the ways to compare NULL values? in laravel 5.5

Posted 3 months ago by daniel21gt

How about, I have the following query comparing a NULL value, I do not think it is the most appropriate way, is there a more technical way to compare a null column?

usuarios::where('asignacion', NULL)->where('cedula', $request->cedula)->update(['asignacion' => $gestionUnicos->last()]);

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

Reply to

Use Markdown with GitHub-flavored code blocks.