PHPackages                             jaspaul/eloquent-sti - 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. jaspaul/eloquent-sti

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

jaspaul/eloquent-sti
====================

A simple single table inheritance library for eloquent.

1.0(6y ago)56.7k1MITPHPPHP &gt;=7.2

Since Feb 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Jaspaul/eloquent-sti)[ Packagist](https://packagist.org/packages/jaspaul/eloquent-sti)[ RSS](/packages/jaspaul-eloquent-sti/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Eloquent STI (Single Table Inheritance)
=======================================

[](#eloquent-sti-single-table-inheritance)

[![Build Status](https://camo.githubusercontent.com/f4dcb0e473877585b8c63bedf88f0cbd976fc39add471c1eed7bc3ab8e91f673/68747470733a2f2f7472617669732d63692e6f72672f4a61737061756c2f656c6f7175656e742d7374692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Jaspaul/eloquent-sti) [![Coverage Status](https://camo.githubusercontent.com/d80be3b1ebf19eeef2394c545513480aca4a5cefb886fc76c9be30ad042b05c7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a61737061756c2f656c6f7175656e742d7374692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jaspaul/eloquent-sti?branch=master) [![Code Climate](https://camo.githubusercontent.com/b6e2eb5cec19b5872c403af947998bc290ce96aa8d83542d36771f82b3b69d17/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a61737061756c2f656c6f7175656e742d7374692f6261646765732f6770612e737667)](https://codeclimate.com/github/Jaspaul/eloquent-sti)

Install
-------

[](#install)

Via Composer

```
$ composer require jaspaul/eloquent-sti
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 7.2
- PHP 7.3
- PHP 7.4

Usage
-----

[](#usage)

```
