PHPackages                             oobook/manage-eloquent - 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. [Database &amp; ORM](/categories/database)
4. /
5. oobook/manage-eloquent

ActiveLibrary[Database &amp; ORM](/categories/database)

oobook/manage-eloquent
======================

Manage the laravel eloquent model relationships, table columns and column types

v1.2.4(4mo ago)03.5k3MITPHPPHP &gt;=8.1CI passing

Since Sep 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/OoBook/manage-eloquent)[ Packagist](https://packagist.org/packages/oobook/manage-eloquent)[ Docs](https://github.com/oobook/manage-eloquent)[ RSS](/packages/oobook-manage-eloquent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (3)

Manage the laravel eloquent model relationships, table columns and column types
===============================================================================

[](#manage-the-laravel-eloquent-model-relationships-table-columns-and-column-types)

[![Main](https://camo.githubusercontent.com/792c6f658b2420fe7a00b52e8835580ffcd753b539668defb44d0754f22448c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6f626f6f6b2f6d616e6167652d656c6f7175656e742f74657374732e796d6c3f6c6162656c3d7465737473266c6f676f3d6769746875622d616374696f6e73)](https://github.com/oobook/manage-eloquent/actions?workflow=tests)[![Latest Version on Packagist](https://camo.githubusercontent.com/b5844830d6285018fc6145cf46e11569f06c6979d60c4274e64250aa06fb71ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6f626f6f6b2f6d616e6167652d656c6f7175656e742e7376673f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/oobook/manage-eloquent)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/544cf2caaa33cbfad6e5e07fdb9a3416152bc0ecb449dddf291dded920e94139/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6f6f626f6f6b2f6d616e6167652d656c6f7175656e743f6c6162656c3d72656c65617365266c6f676f3d476974487562)](https://github.com/oobook/manage-eloquent/releases)[![Total Downloads](https://camo.githubusercontent.com/66451d0df3a6e4edb229d20d220e60433997ceee988dd50a387bce29104dbc00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6f626f6f6b2f6d616e6167652d656c6f7175656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oobook/manage-eloquent)[![GitHub Workflow Status](https://camo.githubusercontent.com/e1d16971b3d001a2a78c94defc80bf089d552d033de18868146f681db26954eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f6f626f6f6b2f6d616e6167652d656c6f7175656e742f74657374733f6c6162656c3d7465737473)](https://camo.githubusercontent.com/e1d16971b3d001a2a78c94defc80bf089d552d033de18868146f681db26954eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f6f626f6f6b2f6d616e6167652d656c6f7175656e742f74657374733f6c6162656c3d7465737473)

This package will help out you to manage the laravel eloquent model relationships, table columns and column types.

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

[](#installation)

You can install the package via composer:

```
composer require oobook/manage-eloquent
```

Usage
-----

[](#usage)

You must define return types of relationships in order to use **definedRelationships()** method, \\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo i.e. as following.

```
