Typed public properties
Declare your columns as typed public properties, so your editor and static analysis know every field on the model.
Describe casts, fillable fields, validation, relationships, and events with PHP attributes on typed public properties, right where your editor can see them.

Same model, higher up
final class Product extends Model
{
protected $fillable = ['name', 'price'];
protected $casts = [
'price' => 'float',
];
public function category(): BelongsTo
{
return $this->belongsTo(Category::class);
}
}#[BelongsTo(Category::class)]
final class Product extends Model
{
use Lift;
#[Fillable]
#[Rules(['required', 'string'])]
public string $name;
#[Fillable]
#[Cast('float')]
public float $price;
}