<?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
 * @property  string $meta
 * @property  string $network
 * @method static CloudInitScript ofIds($ids)
 */
class CloudInitScript extends ExtendedEloquentModel
{

    protected $table = 'CloudInitScript';

    /** @var array */
    protected $fillable = [ 'name', 'script', 'meta','network'];


    public function scopeOfIds($query , array $ids){
        return $query->whereIn('id',$ids);
    }
}