27 lines
662 B
PHP
27 lines
662 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Store\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Lunar\Base\Traits\HasTranslations;
|
|
|
|
/**
|
|
* Singleton — always exactly one row, fetched/created via
|
|
* Modules\Core\Store\Services\StoreDetailsService::current(). See that
|
|
* table's own migration docblock for why name/address/
|
|
* bank_transfer_instructions are locale-keyed JSON and the rest are plain.
|
|
*/
|
|
class StoreDetails extends Model
|
|
{
|
|
use HasTranslations;
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $casts = [
|
|
'name' => 'array',
|
|
'address' => 'array',
|
|
'bank_transfer_instructions' => 'array',
|
|
'legal_name' => 'array',
|
|
];
|
|
}
|