Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'CrestApps\CodeGenerator\Traits\Str' not found #177

Closed
huszerldani opened this issue Oct 18, 2021 · 8 comments
Closed

Class 'CrestApps\CodeGenerator\Traits\Str' not found #177

huszerldani opened this issue Oct 18, 2021 · 8 comments

Comments

@huszerldani
Copy link

Environment:

  • Laravel-Code-Generator Version: 2.4.5
  • Laravel Version: 8.63.0

Description:

I ran a command:
php artisan resource-file:from-database User

I got an error:
Class 'CrestApps\CodeGenerator\Traits\Str' not found at C:\laragon\www\dentit\vendor\crestapps\laravel-code-generator\src\Traits\Migration.php:119

Fix

I fixed it with importing Str class in Migration trait:
vendor/crestapps/laravel-code-generator/src/Traits/Migration.php:8 --> use CrestApps\CodeGenerator\Support\Str;

@MikeAlhayek
Copy link
Collaborator

MikeAlhayek commented Oct 18, 2021

Thank you for reporting this issues!

Upgrade to v2.4.6.. that should work

@thatsenam
Copy link

Thank you for reporting this issues!

Upgrade to v2.4.6.. that should work

But does not work with Laravel 6.20

@MikeAlhayek
Copy link
Collaborator

Are you getting an issue when using it on Laravel 6.20? If so, please open an issue and explain it

@huszerldani
Copy link
Author

No, I'm using Laravel 8.63.0

Is the package officially compatible with Laravel 8?

@MikeAlhayek
Copy link
Collaborator

MikeAlhayek commented Oct 21, 2021

Yes. It should work for Laravel 5.1+

@marco-acorte
Copy link

Thank you for reporting this issues!
Upgrade to v2.4.6.. that should work

But does not work with Laravel 6.20

yes i't not working on a 6.x LTS project ... see my comment
#178 (comment)

@MikeAlhayek
Copy link
Collaborator

@marco-acorte does it work with v2.4.7?

@marco-acorte
Copy link

marco-acorte commented Nov 30, 2021

@marco-acorte does it work with v2.4.7?

Yes, it works perfectly @CrestApps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants