37074-vm/app/Models/Post.php
Flatlogic Bot c2cb4a5b67 1.0
2025-12-19 19:07:10 +00:00

32 lines
595 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
use HasFactory, HasUuids;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'title',
'body',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
// Add any casts here if needed in the future
];
}