https://github.com/xujif/laravel-postgres-extends
extends pgsql supports of laravel
https://github.com/xujif/laravel-postgres-extends
Last synced: 3 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T02:45:29.000Z (over 8 years ago)
- Last Synced: 2025-02-02T03:27:34.349Z (5 months 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',
```