Skip to content

Target class [files] does not exist. #5

@kcifuentes

Description

@kcifuentes

Hi, I have been following the video series and I have a question.

In video number 5 - Laravel Package Development - e05 - Press File Structure, you use the 'File' façade, as follows:

preg_match_all('/^-{3}(.*?)-{3}(.*)/s',
     File::get($this->fileName),
     $this->data
);

but an error is returning to me and I would really like you to please help me, the error is as follows

There was 1 error:

1) \Press\Tests\PressFileParserTest::testTheHeadAndBodyGetsSplit
Illuminate\Contracts\Container\BindingResolutionException: Target class [files] does not exist.

Technical information:

orchestra/testbench (v4.6.0)
laravel/framework (v6.16.0)

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions