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]