use Illuminate\Database\Eloquent\Model; class User extends Model { protected $table = 'users'; }
$users = User::where('age', '>', 18) ->orderBy('name') ->get();
$user = User::find(1); $user->name = 'John Doe'; $user->save();This retrieves the user with ID 1 and updates their name to "John Doe". Overall, the php illuminate/database/eloquent Model is a powerful and flexible package library that simplifies working with SQL databases in PHP.