<?php namespace App\Models; use App\Models\Concerns\BelongsToSchool; use Illuminate\Database\Eloquent\Model; class Announcement extends Model { use BelongsToSchool; protected $guarded = []; protected function casts(): array { return ['is_important'=>'boolean','published_at'=>'datetime']; } }
