SELECT * FROM users WHERE email ilike '%@gmail.com' OR email ilike '%outlook.com' OR email ilike '%@fastmail.com';
SELECT * FROM users WHERE email ilike ANY('{%@gmail.com,%@outlook.com,%@fastmail.com}');
With the Laravel query builder this could be used easily like the following:
PostgreSQL supports interesting array comparison operators which can simply some queries:
With the Laravel query builder this could be used easily like the following: