Package Data | |
---|---|
Maintainer Username: | jumper423 |
Maintainer Contact: | thibaud@dauce.fr (Thibaud Dauce) |
Package Create Date: | 2016-06-16 |
Package Last Update: | 2016-06-16 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:00:05 |
Package Statistics | |
---|---|
Total Downloads: | 52 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 0 |
Add inheritance in postgresql tables
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'
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');
});