Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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',
```