mpociot / laravel-test-factory-helper

Generate Laravel test factories from your existing models
935 stars 87 forks source link

Use FQCN #41

Closed JayBizzle closed 5 years ago

JayBizzle commented 5 years ago

Don't know if I am doing something wrong, but this won't work for me without the FQCN for the Str::class

jasonmccreary commented 5 years ago

You're likely missing the Str alias in your config/app.php. It was added in 5.8 I believe. Let me know if that doesn't solve it and we can reopen.

JayBizzle commented 5 years ago

That was it, thought it would be something simple as no-one else had reported it, thanks @jasonmccreary 👍

jasonmccreary commented 5 years ago

Good. I guess this could be an issue for earlier versions of apps. We'll see. Although that's what Laravel Shift is for. 😄