Feat: Adding Store Details Page
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user