PHPackages                             jumper423/laravel-postgresql-inherit - 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. jumper423/laravel-postgresql-inherit

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

jumper423/laravel-postgresql-inherit
====================================

Add inheritance in postgresql tables

2.1(9y ago)3522MITPHPPHP &gt;=5.4.0

Since Jul 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jumper423/laravel-postgresql-inherit)[ Packagist](https://packagist.org/packages/jumper423/laravel-postgresql-inherit)[ RSS](/packages/jumper423-laravel-postgresql-inherit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

PostgresqlSchema
================

[](#postgresqlschema)

[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)

Add inheritance in postgresql tables

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

[](#installation)

[PHP](https://php.net) 5.4+ and [Laravel](http://laravel.com) 5.2+ are required.

To get the latest version of PostgreSQL Schema, simply require `"jumper423/laravel-postgresql-inherit": "2.*"` in your `composer.json` file. You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once PostgreSQL Schema is installed, you need to register the service provider. Open up `app/config/app.php` and add the following to the `providers` key.

- `'ThibaudDauce\PostgresqlSchema\PostgresqlSchemaServiceProvider'`

Usage
-----

[](#usage)

In migration file when using a postgresql database, you can use the new method `addInheritedTable`:

```
