Stopping Laravel SQL Injection with sole()
ā aaronsaray.com ā Edit
While parameterized queries are the preferred method, sole() adds an extra layer of protection when using raw queries, especially when only one record should match.
Read more [aaronsaray.com]