I want to write a query that selects rows where 2 attributes from 1 object have equal value.
This will be an example of this in raw SQL:
Select * from users u where u.username = u.lastname
Does laravel have any methods that take 2 column names as parameters and return matching results?
source share