16 lines
297 B
PHP
16 lines
297 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LegalDocument extends Model
|
|
{
|
|
protected $fillable = ['type', 'title', 'version', 'body', 'status', 'published_at'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['published_at' => 'datetime'];
|
|
}
|
|
}
|