CrestApps / laravel-code-generator

An efficient Laravel code generator, saving time by automating the creation of resources such as views, controllers, routes, migrations, languages, and form-requests. Highly flexible and customizable, it includes a cross-browser compatible template and client-side validation for application modernization.
https://laravel-code-generator.crestapps.com
MIT License
738 stars 158 forks source link

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

Closed huszerldani closed 3 years ago

huszerldani commented 3 years ago

Environment:

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 commented 3 years ago

Thank you for reporting this issues!

Upgrade to v2.4.6.. that should work

thatsenam commented 3 years ago

Thank you for reporting this issues!

Upgrade to v2.4.6.. that should work

But does not work with Laravel 6.20

MikeAlhayek commented 3 years ago

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

huszerldani commented 3 years ago

No, I'm using Laravel 8.63.0

Is the package officially compatible with Laravel 8?

MikeAlhayek commented 3 years ago

Yes. It should work for Laravel 5.1+

marco-acorte commented 2 years ago

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 https://github.com/CrestApps/laravel-code-generator/issues/178#issuecomment-981529628

MikeAlhayek commented 2 years ago

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

marco-acorte commented 2 years ago

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

Yes, it works perfectly @CrestApps