jumper423 / laravel-postgresql-inherit
Add inheritance in postgresql tables
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 10
pkg:composer/jumper423/laravel-postgresql-inherit
Requires
- php: >=5.4.0
- illuminate/database: 5.2.*
- illuminate/support: 5.2.*
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2025-10-18 02:50:06 UTC
README
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'); });