2018-10-12 12:54:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Webkul\Core\Models;
|
|
|
|
|
|
2020-01-08 13:29:36 +00:00
|
|
|
use Webkul\Core\Eloquent\TranslatableModel;
|
2019-02-18 07:30:40 +00:00
|
|
|
use Webkul\Core\Contracts\CountryState as CountryStateContract;
|
2018-10-12 12:54:10 +00:00
|
|
|
|
2020-01-08 13:29:36 +00:00
|
|
|
class CountryState extends TranslatableModel implements CountryStateContract
|
2018-10-12 12:54:10 +00:00
|
|
|
{
|
|
|
|
|
public $timestamps = false;
|
2020-01-10 12:20:17 +00:00
|
|
|
|
2020-01-29 07:21:12 +00:00
|
|
|
public $translatedAttributes = ['default_name'];
|
2020-01-10 12:20:17 +00:00
|
|
|
|
|
|
|
|
protected $with = ['translations'];
|
2020-01-29 11:07:20 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function toArray()
|
|
|
|
|
{
|
|
|
|
|
$array = parent::toArray();
|
|
|
|
|
|
|
|
|
|
$array['default_name'] = $this->default_name;
|
|
|
|
|
|
|
|
|
|
return $array;
|
|
|
|
|
}
|
2018-10-12 12:54:10 +00:00
|
|
|
}
|