| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace ModulesGarden\ProxmoxAddon\App\Models;
- use ModulesGarden\ProxmoxAddon\Core\Models\ExtendedEloquentModel;
- /**
- * Class CloudInitScript
- * @package ModulesGarden\ProxmoxAddon\App\Models
- * @property string $id;
- * @property string $name
- * @property string $script
- * @method static CloudInitScript ofIds($ids)
- */
- class CloudInitScript extends ExtendedEloquentModel
- {
- protected $table = 'CloudInitScript';
- /** @var array */
- protected $fillable = [ 'name', 'script'];
- public function scopeOfIds($query , array $ids){
- return $query->whereIn('id',$ids);
- }
- }
|