mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 05:10:59 +00:00
31 lines
587 B
PHP
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',
|
|
];
|
|
}
|
|
}
|