Arrilot\Widgets\Test\Support\TestApplicationWrapper::make PHP Method

make() public method

Wrapper around app()->make().
public make ( string $abstract, array $parameters = [] ) : mixed
$abstract string
$parameters array
return mixed
    public function make($abstract, array $parameters = [])
    {
        if ($abstract == 'arrilot.widget') {
            return new WidgetFactory($this);
        }
        if ($abstract == 'arrilot.async-widget') {
            return new AsyncWidgetFactory($this);
        }
        if ($abstract == 'encrypter') {
            return new TestEncrypter();
        }
        throw new InvalidArgumentException("Binding {$abstract} cannot be resolved while testing");
    }