PHPackages                             julianstark999/laravel-model-iid - 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. julianstark999/laravel-model-iid

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

julianstark999/laravel-model-iid
================================

Add an internal ID to your Eloquent Model

0.1.2(4y ago)069MITPHPPHP ^7.4|^8.0CI failing

Since Jan 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/julianstark999/laravel-model-iid)[ Packagist](https://packagist.org/packages/julianstark999/laravel-model-iid)[ Docs](https://github.com/julianstark999/laravel-model-iid)[ GitHub Sponsors](https://github.com/julianstark999)[ RSS](/packages/julianstark999-laravel-model-iid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (8)Versions (9)Used By (0)

[![Social Card of Laravel Model Iid](https://camo.githubusercontent.com/22f6deb9a9a384dd5a1fe6af82c6fd4c416254295e83ceb7216bd64746610af9/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d6d6f64656c2d6969642e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6a756c69616e737461726b3939392532466c61726176656c2d6d6f64656c2d696964267061747465726e3d63697263756974426f617264267374796c653d7374796c655f32266465736372697074696f6e3d266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6461746162617365267769647468733d33353026686569676874733d333530)](https://camo.githubusercontent.com/22f6deb9a9a384dd5a1fe6af82c6fd4c416254295e83ceb7216bd64746610af9/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f6c61726176656c2d6d6f64656c2d6969642e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6a756c69616e737461726b3939392532466c61726176656c2d6d6f64656c2d696964267061747465726e3d63697263756974426f617264267374796c653d7374796c655f32266465736372697074696f6e3d266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6461746162617365267769647468733d33353026686569676874733d333530)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b4b1a232280256c28c2f863dfb1453f15f47364ca69f291194037cdf580d1d1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a756c69616e737461726b3939392f6c61726176656c2d6d6f64656c2d6969642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/julianstark999/laravel-model-iid)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7139a2996313c1b2b784c5fc8956876d8543f06fdf70fa8390bccc69acc1c359/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a756c69616e737461726b3939392f6c61726176656c2d6d6f64656c2d6969642f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/julianstark999/laravel-model-iid/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/945b8a24a31de3d3000e1ee1046d14120a4bdd13c5ceb6d33f2006dd6a845ce5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a756c69616e737461726b3939392f6c61726176656c2d6d6f64656c2d6969642f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/julianstark999/laravel-model-iid/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/bd3e711bd196ad54639b8b183ae3ce36eed9e7a064f4526b3dc25facb892eb89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a756c69616e737461726b3939392f6c61726176656c2d6d6f64656c2d6969642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/julianstark999/laravel-model-iid)

Add an internal ID to your Eloquent Model
=========================================

[](#add-an-internal-id-to-your-eloquent-model)

This Laravel package provides the functionality to have an internal ID (displayable in the UI), that's unique in the scope of a relationship

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

[](#installation)

You can install the package via composer:

```
composer require julianstark999/laravel-model-iid
```

Usage
-----

[](#usage)

### Model

[](#model)

```
