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
return true;
}
// We will append the names of the class to the event to distinguish it from
// other model events that are fired, allowing us to listen on each model
// event set individually instead of catching event for all the models.
$event = "eloquent.{$event}: ".static::class;
$method = $halt ? 'until' : 'fire';
return static::$dispatcher->{$method}($event, static::class);
}
/**
* Reset cached model to its defaults.
*
* @return $this
*/
public function resetCacheConfig()
{
! $this->cacheDriver || $this->cacheDriver = null;
! $this->cacheLifetime || $this->cacheLifetime = -1;
return $this;
}
The text was updated successfully, but these errors were encountered:
Using Laravel 5.8.2, new to Laravel. Unsure if it's a bug or I am using it incorrectly. Glad for any help.
When creating a new model in the controller:
an exception is thrown:
Call to undefined method Illuminate\Events\Dispatcher::fire()
vendor/rinvex/laravel-cacheable/src/CacheableEloquent.php
From line 212:
The text was updated successfully, but these errors were encountered: