for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Siak\Tontine\Model;
class Property extends Base
{
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
* The attributes that are mass assignable.
* @var array
protected $fillable = [
'content',
];
* The model's default values for attributes.
protected $attributes = [
'content' => '{}',
* Get the attributes that should be cast.
* @return array<string, string>
protected function casts(): array
return [
'content' => 'array',
}
* Get the parent owner model.
public function owner()
return $this->morphTo();