The resolve function resolves a given class or interface name to an instance using the service container:
<?php $api = resolve('HelpSpot\API');
<?php         $skip = $this->option('skip') ?: '';

        $overwriteMigrations = $this->option('overwrite-migrations') ?: false;



        $blueprint = resolve(Blueprint::class);

        $generated = $this->builder->execute($blueprint, $this->filesystem, $file, $only, $skip, $overwriteMigrations);



        collect($generated)->each(
<?php     {

        $contents = $this->filesystem->get('.blueprint');



        $blueprint = resolve(Blueprint::class);



        $generated = $blueprint->parse($contents, false);
<?php     public function handle()

    {

        $blueprint = resolve(Blueprint::class);

        $path = $this->option('path');

        $definitions = $this->tracer->execute($blueprint, $this->filesystem, $path);
<?php         $builder = $this->mock(Builder::class);



        $builder->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, 'draft.yaml', '', '', false)

            ->andReturn(collect([]));



        $this->artisan('blueprint:build')
<?php         $builder = $this->mock(Builder::class);



        $builder->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, 'test.yml', 'a,b,c', 'x,y,z', false)

            ->andReturn(collect([]));



        $this->artisan('blueprint:build test.yml --only=a,b,c --skip=x,y,z')
<?php             ->andReturnTrue();

        $builder = $this->mock(Builder::class);

        $builder->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, 'draft.yaml', '', '', false)

            ->andReturn(collect([

                "created" => [

                    "file1",
<?php             ->assertExitCode(0);



        $tracer->shouldHaveReceived('execute')

            ->with(resolve(Blueprint::class), $this->filesystem, []);

    }

}
<?php         $tracer = $this->mock(Tracer::class);



        $tracer->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, [])

            ->andReturn([]);



        $this->artisan('blueprint:trace')
<?php         $tracer = $this->mock(Tracer::class);



        $tracer->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, [])

            ->andReturn([

                'Model' => [],

                'OtherModel' => [],
<?php         $builder = $this->mock(Builder::class);



        $builder->shouldReceive('execute')

            ->with(resolve(Blueprint::class), $this->files, 'vendor/package/src/app/Models')

            ->andReturn([]);



        $this->artisan('blueprint:trace --path=vendor/package/src/app/Models')