wind-framework / eloquent
Wind framework eloquent.
Installs: 83
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/wind-framework/eloquent
Requires
- pader/amphp-eloquent-mysql: ^1.0@beta
- wind-framework/wind-framework: ^1.0
This package is auto-updated.
Last update: 2025-10-10 05:55:46 UTC
README
Async/Coroutine Laravel Database for Wind Framework.
Usage:
- Make sure you have right database config in
config/database.php
. - Add
\Wind\Eloquent\Component::class
toconfig/components.php
. - Now you can use async/coroutine, connection pool, high concurrency Eloquent.
Examples:
// use DB Facade use Illuminate\Support\Facades\DB $user = DB::table('users')->first(); print_r($user); // define a user model, and query by model class User extends \Illuminate\Database\Eloquent\Model { protected $table = 'users'; public function books() { return $this->hasMany(Books::class); } } $user = User::query()->with('books')->first(); print_r($user?->toArray());