Файл: app/Models/Rule.php
Строк: 16
<?php
declare(strict_types=1);
namespace AppModels;
use AppCastsHtmlCast;
use CarbonCarbonImmutable;
use IlluminateDatabaseEloquentModel;
/**
* Class Rule
*
* @property int $id
* @property string $text
* @property CarbonImmutable $created_at
*/
class Rule extends Model
{
/**
* Indicates if the model should be timestamped.
*/
public $timestamps = false;
/**
* The attributes that aren't mass assignable.
*/
protected $guarded = [];
/**
* Get the attributes that should be cast.
*/
protected function casts(): array
{
return [
'text' => HtmlCast::class,
'created_at' => 'datetime',
];
}
}