LaravelPackages.net
Acme Inc.
Toggle sidebar
jumper423/laravel-postgresql-inherit

Add inheritance in postgresql tables

52
3
2.1
About jumper423/laravel-postgresql-inherit

jumper423/laravel-postgresql-inherit is a Laravel package for add inheritance in postgresql tables. It currently has 3 GitHub stars and 52 downloads on Packagist (latest version 2.1). Install it with composer require jumper423/laravel-postgresql-inherit. Discover more Laravel packages by jumper423 or browse all Laravel packages to compare alternatives.

Last updated

PostgresqlSchema

Software License

Add inheritance in postgresql tables

Installation

PHP 5.4+ and Laravel 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

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

<?php

Schema::create('test', function(Blueprint $table) {

  $table->increments('id');
  $table->addInheritedTable('users');
});

Star History Chart