Press icon indicating copy to clipboard operation
Press copied to clipboard

Target class [files] does not exist.

Open kcifuentes opened this issue 6 years ago • 0 comments

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.

kcifuentes avatar Feb 19 '20 04:02 kcifuentes