- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
laravel-tool/eloquent-external-events
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Eloquent external events via API
Resources
Stars
Watchers
Forks
Packages 0
No packages published