PHP code example of asmiarowski / laravel-postgres

1. Go to this page and download the library: Download asmiarowski/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/ */

    

asmiarowski / laravel-postgres example snippets


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