laravel-tool/eloquent-external-events
Eloquent external events via API
Setup
- Add trait ExternalEvents to model
- Add
eloquent_external_eventsconfig:return [ 'connections' => [ 'default' => [ 'endpoint' => env('ELOQUENT_EXTERNAL_EVENTS_API_ENDPOINT'), 'token' => env('ELOQUENT_EXTERNAL_EVENTS_API_TOKEN'), ], ], ]; - Add name of external model:
public function externalModel(): string { return 'App\Models\Application'; } - Add connection name to model from
eloquent_external_eventsconfig:public function getExternalEventConnectionName(): string { return 'kyc'; } - See https://github.com/laravel-tool/eloquent-external-events-server
Related Packages
danielme85/laravel-forceutf8
Simple Laravel 5 service class for neitanod's forceutf8. https://github.com/neit...
18,341
1
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.3.0 | >=8.1 | ^9.0| | MIT | |
| 1.2.0 | >=8.1 | ^9.0| | MIT | |
| 1.1.1 | >=8.1 | ^9.0| | MIT | |
| 1.0.2 | >=8.1 | ^9.0| | MIT | |
| 1.0.1 | >=8.1 | ^9.0| | MIT | |
| 1.0.0 | >=8.1 | ^9.0| | MIT |