You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
917 B
PHTML

2 years ago
<?php
namespace App\Models;
use Carbon\Carbon;
class Setting extends BaseModel
{
protected $table = 'setting';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name', 'key', 'value', 'system',
'created_id', 'updated_id',
'created_at', 'updated_at'
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
];
protected $visible = [
'id', 'name', 'key', 'value', 'system',
'created_id',
'created_at'
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'system' => 'integer'
];
public function user()
{
return $this->belongsTo('App\Models\User', 'created_id');
}
}