Files
InvoiceShelf/app/Platform/Modules/Models/Module.php
T

31 lines
587 B
PHP

<?php
namespace App\Platform\Modules\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* Registry row describing one module known to this installation.
*/
class Module extends Model
{
use HasFactory;
protected $table = 'modules';
protected $guarded = ['id'];
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'installed' => 'boolean',
'enabled' => 'boolean',
'last_failed_at' => 'datetime',
];
}
}