Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xujif/laravel-postgres-extends
extends pgsql supports of laravel
https://github.com/xujif/laravel-postgres-extends
Last synced: 17 days ago
JSON representation
extends pgsql supports of laravel
- Host: GitHub
- URL: https://github.com/xujif/laravel-postgres-extends
- Owner: xujif
- License: apache-2.0
- Created: 2016-05-31T11:56:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T02:45:29.000Z (almost 8 years ago)
- Last Synced: 2024-11-29T14:57:04.215Z (24 days ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
#Laravel Postgresql schama extends
####usage:
```
Schema::create('table', function (Blueprint $table) {
$table->increments('id');
$table->jsonb('fields');
$table->circle('fields');
$table->textArray('fieldsOfArray'); //type of text[]
$table->integerArray('integerArray'); //type of text[]
});
```##supprts types
```php
'json',
'hstore',
'uuid',
'jsonb',
'ipAddress',
'netmask',
'macAddress',
'point',
'line',
'lineSegment',
'path',
'box',
'polygon',
'circle',
'money',
'int4range',
'int8range',
'numrange',
'tsrange',
'tstzrange',
'daterange',
'tsvector',
```