Version 4.8.0 Call to undefined method App\Models\User::getStorableEnumValue()
arasosman opened this issue · comments
I have problem only 4.8.0 version.
it works properly on version 4.7.3.
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
i think, this issue is related with this commit.
af305c9
So 4.8.0 is not compatible with Laravel 8 anymore?
Reverted to 4.7.3 test suite passes
yay for having tests and catching stuff before committing to production
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.