I am new to Laravel. Please excuse the newbie question but how do I find if a record exists?
$user = User::where(\'em
One of the best solution is to use the firstOrNew or firstOrCreate method. The documentation has more details on both.
firstOrNew
firstOrCreate