runner / fastd-eloquent
eloquent for FastD framework
Installs: 9 210
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- fastd/fastd: ~3.0
- illuminate/database: ^5.5
- illuminate/events: ^5.6
- illuminate/pagination: ^5.5
README
illuminate/database In FastD.
Features
- 支持 Eloquent ORM
- 支持 Pagination
- 中间件捕获 NotFoundException
Installation
composer require runner/fastd-eloquent
Usage
配置服务提供者
\Runner\FastdEloquent\EloquentServiceProvider::class
Event and Observer
如果需要用到模型事件或 Observer, 需要注册服务提供者
\Runner\FastdEloquent\EventServiceProvider::class
并增加配置 event.php
<?php return [ 'listen' => [ CustomEvent::class => [ CustomListener::class, ], ], 'observer' => [ CustomModel::class => CustomObserver::class, ], ];