2025-01-21 14:57:54 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
2025-07-21 13:29:17 +08:00
|
|
|
/**
|
|
|
|
|
* @property int $id
|
|
|
|
|
* @property string $code
|
|
|
|
|
* @property string $name
|
|
|
|
|
* @property string $description
|
|
|
|
|
* @property string $version
|
|
|
|
|
* @property string $author
|
|
|
|
|
* @property string $url
|
|
|
|
|
* @property string $email
|
|
|
|
|
* @property string $license
|
|
|
|
|
* @property string $requires
|
|
|
|
|
* @property string $config
|
|
|
|
|
*/
|
2025-01-21 14:57:54 +08:00
|
|
|
class Plugin extends Model
|
|
|
|
|
{
|
|
|
|
|
protected $table = 'v2_plugins';
|
|
|
|
|
|
|
|
|
|
protected $guarded = [
|
|
|
|
|
'id',
|
|
|
|
|
'created_at',
|
2025-06-22 17:38:17 +08:00
|
|
|
'updated_at',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'is_enabled' => 'boolean'
|
2025-01-21 14:57:54 +08:00
|
|
|
];
|
|
|
|
|
}
|