Skip to content

Instantly share code, notes, and snippets.

@nkeena
Created July 28, 2021 20:13
Show Gist options
  • Save nkeena/aaef2450111792b3def24bc32031ddee to your computer and use it in GitHub Desktop.
Save nkeena/aaef2450111792b3def24bc32031ddee to your computer and use it in GitHub Desktop.
Region model that uses CSV data
<?php
namespace App\Models;
use App\StaticModel;
class Region extends StaticModel
{
protected $schema = [
'id' => 'string',
];
protected $source = 'regions';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment