Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resource not escaped correctly (laravel#53100)
When bindings contain a resource (e.g. file resource), then it is not escaped correctly. Additionally, the gettype() call is to ensure that a closed resource is also escaped correctly. The latter is an edge-case scenario, which can be encountered in situations when a file handler has already been closed, and one attempts to log the executed query, e.g. via using barryvdh/laravel-debugbar.
- Loading branch information