$args[] = user::where('id', 'name', 'email')->get(); laravel code example Example: laravel get query parameters $name = $request->query('name', 'Helen');