gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 16 forks source link

Create a pending FM request using the `Http` facade rather then directly #68

Closed tkuijer closed 3 months ago

tkuijer commented 3 months ago

This PR changes the creation of a new Http request towards the FM server, rather then calling new PendingRequest() the request gets created by calling the Http facade, this allows Events that are dispatched from the Http request to be handled in the framework.

This was needed to allow the Http Client watcher from Laravel Telescope to function. Currently this does not register outgoing requests other then the request that gets sent when starting a new FM session (since this already calls the Http facade).