You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected function _builder(): Builder
{
$model = $this->app->make($this->model());
$builder = $model::query();
// SOME OTHER LINES
return $builder;
}
When I'm using Laravel model caching and call this
$this->_builder()->find($id)
if $id = null then there is this error
GeneaLabs\LaravelModelCaching\CacheKey::processEnum(): Argument #1 ($value) must be of type BackedEnum|UnitEnum|Illuminate\Database\Query\Expression|string, null given, called in /var/www/html/vendor/genealabs/laravel-model-caching/src/CacheKey.php on line 429
The text was updated successfully, but these errors were encountered:
i have this method in my repository
When I'm using Laravel model caching and call this
$this->_builder()->find($id)
if $id = null then there is this error
GeneaLabs\LaravelModelCaching\CacheKey::processEnum(): Argument #1 ($value) must be of type BackedEnum|UnitEnum|Illuminate\Database\Query\Expression|string, null given, called in /var/www/html/vendor/genealabs/laravel-model-caching/src/CacheKey.php on line 429
The text was updated successfully, but these errors were encountered: