public function afterModelSave()
    {
        Cache::forget($this->getCacheKey());

        try {
            Artisan::call('queue:restart');
        } catch (Exception $e) {
            Log::warning($e->getMessage());
        }
    }
public function afterModelSave()
    {
        Cache::forget($this->getCacheKey());

        try {
            Artisan::call('queue:restart');
        } catch (Exception $e) {
            Log::warning($e->getMessage());
        }
    }
public function afterModelSave ( ) { Cache :: forget ( $ this -> getCacheKey ( ) ) ; try { Artisan :: call ( 'queue:restart' ) ; } catch ( Exception $ e ) { Log :: warning ( $ e -> getMessage ( ) ) ; } }
After the model is saved, clear the cached query entry
and restart queue workers so they have the latest settings
@return void
After the model is saved clear the cached query entry and restart queue workers so they have the latest settings