$users = User::whereRaw('DATE(created_at) = ? AND status = ?', [date('Y-m-d'), 'active'])->get();
$users = User::whereRaw('name LIKE ?', ['%john%'])->orderBy('created_at', 'desc')->get();In this example, we are fetching all users whose name contains the string "john" using a custom SQL query. We are also ordering the results by the `created_at` field in descending order. The `whereRaw` method is usually part of the Eloquent ORM, which is a package library in Laravel.