. */ namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\Announcement. * * @property int $id * @property string $title * @property string $text_content * @property int $announcement_type_id * @property mixed $links * @property mixed $tracks * @property string $css_class * @property string $template_file * @property string $start_time * @property string $end_time * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereId($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereTitle($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereTextContent($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereAnnouncementTypeId($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereLinks($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereTracks($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereCssClass($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereTemplateFile($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereStartTime($value) * @method static \Illuminate\Database\Query\Builder|\App\Models\Announcement whereEndTime($value) * @mixin \Eloquent */ class Announcement extends Model { protected $table = 'announcements'; protected $casts = [ 'links' => 'array', 'tracks' => 'array', ]; const TYPE_GENERIC = 1; const TYPE_WARNING_ALERT = 2; const TYPE_SERIOUS_ALERT = 3; const TYPE_CUSTOM = 4; }