<?php
 namespace App\Models; use Illuminate\Database\Eloquent\Model; class AddonModule extends Model { protected $fillable = [ 'name', 'status', 'installed_version', 'activated_at', 'deactivated_at', ]; protected $casts = [ 'activated_at' => 'datetime', 'deactivated_at' => 'datetime', ]; public function isActive(): bool { return $this->status === 'active'; } } 