22 lines
383 B
PHP
Executable File
22 lines
383 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Setting extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $table = 'settings';
|
|
protected $fillable = [
|
|
'key',
|
|
'title_fa',
|
|
'value',
|
|
'value_json'
|
|
];
|
|
protected $casts = [
|
|
'value_json'=>'array'
|
|
];
|
|
}
|