Invalidate model cache in code.
Closed this issue · 1 comments
mikebronner commented
One aspect that can be improved in this package would be a way of invalidating the cache directly from the code using a Facade after a mass assignment/update instead of having to rely on an Artisan call like:
Artisan::call('modelCache:clear', ['--model' => 'App\Model']);
Originally posted by @daika7ana in #479
mikebronner commented
@daika7ana thanks for this suggestion, great idea.