$user = User::find(1); // find user with ID 1
$user = User::find(['username' => 'johndoe']); // find user with username 'johndoe'
$user = User::where('age', '>', 18)->orderBy('surname')->first(); // find first user over 18 years old, ordered by surnameThis method is commonly used in the Laravel framework, which is a popular PHP package library for web development. However, it can also be used in other PHP frameworks or custom-built applications.