$users = User::all();
$user = User::where('email', '=', $email)->firstOrFail();
$users = User::paginate(10);This code queries all the users with pagination using the Eloquent ORM and returns 10 users per page. The package library used in these examples is the Eloquent ORM, which is the default ORM included in the Laravel PHP framework.