Use Laravel Container bind to Inject Any Third-Party Package
Originally published at recca0120.github.io
When a third-party class requires constructor parameters, Laravel's container can't auto-resolve it. Directly type-hinting it for injection will throw an error.
Reproducing the Problem
Suppose there's a thi...
recca0120.hashnode.dev1 min read