---
title: "Discussion on \"Use Laravel Container bind to Inject Any Third-Party Package\" | Hashnode"
description: "Discussion on \"Use Laravel Container bind to Inject Any Third-Party Package\". When a third-party class needs constructor parameters, Laravel cannot auto-resolve it. Register it with bind in a ServiceProvider to enable type-hint injection."
url: "https://hashnode.com/posts/how-to-use-laravel-container-to-register-third-party-package/69a63dc6ff0a90fa5be743c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use Laravel Container bind to Inject Any Third-Party Package](https://recca0120.hashnode.dev/how-to-use-laravel-container-to-register-third-party-package?utm_source=hashnode&utm_medium=feed)

When a third-party class needs constructor parameters, Laravel cannot auto-resolve it. Register it with bind in a ServiceProvider to enable type-hint injection.

Mar 3 · 1 min read · recca0120.hashnode.dev  
Read the article

-   [#composer](https://hashnode.com/tag/composer)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#php](https://hashnode.com/tag/php)

## Written by

[recca0120](https://hashnode.com/@recca0120)

@recca0120 · Taipei, Taiwan

  
[View profile](https://hashnode.com/@recca0120)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
