PHP code example of laragrad / eloquent-model-pg-casts
1. Go to this page and download the library: Download laragrad/eloquent-model-pg-casts 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/ */
laragrad / eloquent-model-pg-casts example snippets
class TestGroup extends Model
{
use \Laragrad\Models\Concerns\PgTypeCastable;
protected $casts = [
'test_ids' => 'pg_uuid_array',
];
}