PHPackages                             plank/laravel-model-resolver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. plank/laravel-model-resolver

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

plank/laravel-model-resolver
============================

Retrieve all defined Models available in the Application or Vendor namespaces

v13.1.3(1mo ago)16.2k↑44.4%[1 PRs](https://github.com/plank/laravel-model-resolver/pulls)2MITPHPPHP ^8.3CI passing

Since Feb 24Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/plank/laravel-model-resolver)[ Packagist](https://packagist.org/packages/plank/laravel-model-resolver)[ Docs](https://github.com/plank/laravel-model-resolver)[ GitHub Sponsors](https://github.com/Plank)[ RSS](/packages/plank-laravel-model-resolver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (24)Used By (2)

[![](art/model-resolver.png)](https://plank.co)

[![PHP Version Support](https://camo.githubusercontent.com/f2b4eb75c9cb2647a13ff7d3dfd11e4abe8d1a9c83ea5448ac8799b24c26e6df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706c616e6b2f6c61726176656c2d6d6f64656c2d7265736f6c7665723f636f6c6f723d253233666165333730266c6162656c3d706870266c6f676f3d706870266c6f676f436f6c6f723d253233666666)](https://packagist.org/packages/plank/laravel-model-resolver)[![PHP Version Support](https://camo.githubusercontent.com/fc4d93e10f6522f6943542eacf83644cde8928ff9f57cc6b2be93027b8dcd70e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302e782c25323031312e782d2532333433643339393f636f6c6f723d253233663165646539266c6f676f3d6c61726176656c266c6f676f436f6c6f723d253233666666666666)](https://laravel.com/docs/11.x/releases#support-policy)[![GitHub Workflow Status](https://camo.githubusercontent.com/4828de35953c8c80c195d1fa431fa6dc65a1bcdf166cef84e469d46f69736e78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706c616e6b2f6c61726176656c2d6d6f64656c2d7265736f6c7665722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e2626636f6c6f723d253233626663396264266c6162656c3d72756e2d7465737473266c6f676f3d676974687562266c6f676f436f6c6f723d253233666666)](https://github.com/plank/laravel-model-resolver/actions?query=workflow%3Arun-tests)

Laravel Model Resolver
======================

[](#laravel-model-resolver)

Resolve all defined Models from the application or dependencies.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Usage](#usage)
    - [all](#all)
    - [fromTable](#fromtable)
    - [implements](#implements)
    - [implementsAll](#implementsall)
    - [implementsAny](#implementsany)
    - [uses](#uses)
    - [usesAll](#usesall)
    - [usesAny](#usesany)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)
- [Security Vulnerabilities](#security-vulnerabilities)
- [About Plank](#check-us-out)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require plank/laravel-model-resolver
```

You can publish the config file with:

```
php artisan laravel-model-resolver:install
```

Quick Start
-----------

[](#quick-start)

1. Install the package
2. Run `composer dump-autoload --optimize`

```
