26 lines
428 B
PHP
26 lines
428 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Information extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'information';
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'content',
|
|
'category',
|
|
'image_url',
|
|
'is_published',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_published' => 'boolean',
|
|
];
|
|
}
|