New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rishi-ramawat/laravel-postgresql-inherit

Add inheritance in postgresql tables
27,126 6

Larablocks Analysis

rishi-ramawat/laravel-postgresql-inherit works with Laravel 5 (latest release v2.2, Mar 15, 2017), which reached end of life: no more fixes, even for security.

Laravel 4 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Mar 15, 2017)
  • 0 downloads a month (needs 10,000)
  • 6 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Mar 15, 2017.
  • No releases in the last 12 months.
  • First released: Jul 31, 2014.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.

Install
composer require rishi-ramawat/laravel-postgresql-inherit
Latest Version:v2.2
PHP:>=5.4.0
Laravel:5
Older releases:4
License:MIT
Last Updated:May 13, 2021
Links: GitHub  ·  Packagist
Maintainer: rishi-ramawat

PostgresqlSchema

Software License

Add inheritance in postgresql tables

Installation

PHP 5.4+ and Laravel 5.2+ are required.

For Laravel Versions 5.2.* & 5.3.*, run the following command to install this package via composer

composer require "rishi-ramawat/laravel-postgresql-inherit ~2.1.0"

For Laravel Versions 5.4+, run the following command to install this package via composer

composer require "rishi-ramawat/laravel-postgresql-inherit ~2.2"

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

RishiRamawat\PostgresSchema\PostgresqlSchemaServiceProvider::class,

Usage

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


Schema::create('cities', function(Blueprint $table) {
  $table->increments('id');
  $table->string('name');
  $table->double('population');
  $table->integer('altitude')->comment('In Feet');
});

Schema::create('capitals', function(Blueprint $table) {
    $table->string('state');
    // Make capitals table inherits all the columns of its parent table, cities
    $table->inherits('cities');
});

Alternatives to rishi-ramawat/laravel-postgresql-inherit

umbrellio/laravel-pg-extensions

Extensions for Postgres Laravel

483,716 103
orptech/laravel-migration-partition

Laravel extensions that extends Illuminate to enable partitioned table creation...

34,517 35

Version History

Version Released PHP Laravel License
v2.2 >=5.4.0 ~5.4 MIT
v2.1.1 >=5.4.0 ~5.2 MIT
2.1 >=5.4.0 5.2.* MIT
2.0 >=5.4.0 5.2.* MIT
v1.0 >=5.4.0 4.2.* MIT