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