2015-03-18 00:39:03 +01:00
|
|
|
<?php namespace App\Models;
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2015-03-26 07:24:02 +01:00
|
|
|
use Eloquent;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Class Country
|
|
|
|
*/
|
2015-03-16 22:45:25 +01:00
|
|
|
class Country extends Eloquent
|
|
|
|
{
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
2015-07-02 22:21:29 +02:00
|
|
|
public $timestamps = false;
|
2015-03-16 22:45:25 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2015-12-07 14:34:55 +01:00
|
|
|
protected $visible = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'swap_postal_code',
|
|
|
|
'swap_currency_symbol',
|
|
|
|
'thousand_separator',
|
|
|
|
'decimal_separator'
|
|
|
|
];
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
2015-12-07 14:34:55 +01:00
|
|
|
protected $casts = [
|
|
|
|
'swap_postal_code' => 'boolean',
|
|
|
|
'swap_currency_symbol' => 'boolean',
|
|
|
|
];
|
2015-07-02 22:21:29 +02:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2015-07-02 22:21:29 +02:00
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
2015-03-16 22:45:25 +01:00
|
|
|
}
|