Skip to content

Instantly share code, notes, and snippets.

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