Created
July 28, 2021 20:12
-
-
Save nkeena/dc9235986f11f9b04fcbfff506fb5baf to your computer and use it in GitHub Desktop.
Country model that uses CSV data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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