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

Version 4.8.0 Call to undefined method App\Models\User::getStorableEnumValue() #1289

Open
arasosman opened this issue Mar 27, 2024 · 4 comments
Labels

Comments

@arasosman
Copy link

I have problem only 4.8.0 version.

it works properly on version 4.7.3.

Screenshots
image

Versions (please complete the following information)

  • PHP: 8.2
  • Database: sqlite
  • Laravel: 10

Exception
Call to undefined method App\Models\User::getStorableEnumValue()

Stack Trace
BadMethodCallException: Call to undefined method App\Models\User::getStorableEnumValue()

/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:71
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:36
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:2132
/Users/osmanaras/codes/narbulut/organization/src/vendor/spatie/laravel-activitylog/src/Traits/LogsActivity.php:371
/Users/osmanaras/codes/narbulut/organization/src/vendor/spatie/laravel-activitylog/src/Traits/LogsActivity.php:43
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:404
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:249
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:222
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php:188
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1055
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:987
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/SoftDeletes.php:124
/Users/osmanaras/codes/narbulut/organization/src/app/Repositories/BaseRepository.php:215
/Users/osmanaras/codes/narbulut/organization/src/app/Repositories/UserRepository.php:119
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:29
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:442
/Users/osmanaras/codes/narbulut/organization/src/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261

@arasosman arasosman added the bug label Mar 27, 2024
@arasosman
Copy link
Author

i think, this issue is related with this commit.
af305c9

@petsoukos
Copy link

So 4.8.0 is not compatible with Laravel 8 anymore?

@petsoukos
Copy link

Reverted to 4.7.3 test suite passes

yay for having tests and catching stuff before committing to production

@Gummibeer
Copy link
Collaborator

Seems like Laravel8 was removed from our test matrix but still in the composer.json 🤔
But yeah, seems like 4.8.0 is not compatible with L8 anymore.
Just run a shift to upgrade your project to L9/10/11.

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

No branches or pull requests

3 participants