Skip to content

Commit

Permalink
Create Announcment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 13, 2024
1 parent 30203be commit 29b1b7c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions app/Models/Announcment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Announcement extends Model
{
use HasFactory;

/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'announcements';

/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'text',
'mode',
];

/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'mode' => 'integer',
'created_at' => 'datetime',
];
}

0 comments on commit 29b1b7c

Please sign in to comment.