SystemMaterialFilter.php 484 Bytes
<?php

namespace App\ModelFilters;

use App\Support\ModelFilter;
use Arr;

class SystemMaterialFilter extends ModelFilter
{
    /**
     * @param int|array $scope
     * @return void
     */
    public function scope(int|array $scope): void
    {
        $this->whereIn('scope', Arr::wrap($scope));
    }

    /**
     * @param int|array $type
     * @return void
     */
    public function type(int|array $type): void
    {
        $this->whereIn('type', Arr::wrap($type));
    }
}