spatie / laravel-activitylog

Log activity inside your Laravel app
https://docs.spatie.be/laravel-activitylog
MIT License
5.35k stars 714 forks source link

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

Closed arasosman closed 2 months ago

arasosman commented 7 months ago

I have problem only 4.8.0 version.

it works properly on version 4.7.3.

Screenshots image

Versions (please complete the following information)

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 commented 7 months ago

i think, this issue is related with this commit. https://github.com/spatie/laravel-activitylog/commit/af305c96c0338c2c96f6fc8e68570d947f69f85b

petsoukos commented 6 months ago

So 4.8.0 is not compatible with Laravel 8 anymore?

petsoukos commented 6 months ago

Reverted to 4.7.3 test suite passes

yay for having tests and catching stuff before committing to production

Gummibeer commented 6 months ago

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.

spatie-bot commented 2 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.