PHP code example of erickcg / laravel-postgres

1. Go to this page and download the library: Download erickcg/laravel-postgres library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

erickcg / laravel-postgres example snippets


public function setArrayField(array $value)
{
    $this->array_field = self::mutateToPgArray($value);
}
public function getArrayField()
{
    return self::accessPgArray($this->array_field);
}