mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
36 lines
733 B
PHP
36 lines
733 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
|
|
/**
|
|
* Install-state record for an extension package on disk.
|
|
*
|
|
* @property int $id
|
|
* @property string $identifier
|
|
* @property string $version
|
|
* @property bool $enabled
|
|
* @property string|null $error
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
*/
|
|
#[Fillable(['identifier', 'version', 'enabled', 'error'])]
|
|
class Extension extends Model
|
|
{
|
|
public const string RESOURCE_NAME = 'extension';
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'enabled' => 'bool',
|
|
];
|
|
}
|
|
}
|