Файловый менеджер - Редактировать - /home/easybachat/resumewing.com/app/Observers/CurrencyObserver.php
Ðазад
<?php /* * JobClass - Job Board Web Application * Copyright (c) BeDigit. All Rights Reserved * * Website: https://laraclassifier.com/jobclass * Author: Mayeul Akpovi (BeDigit - https://bedigit.com) * * LICENSE * ------- * This software is provided under a license agreement and may only be used or copied * in accordance with its terms, including the inclusion of the above copyright notice. * As this software is sold exclusively on CodeCanyon, * please review the full license details here: https://codecanyon.net/licenses/standard */ namespace App\Observers; use App\Models\Currency; use Exception; class CurrencyObserver extends BaseObserver { /** * Listen to the Entry saved event. * * @param Currency $currency * @return void */ public function saved(Currency $currency) { // Removing Entries from the Cache $this->clearCache($currency); } /** * Listen to the Entry deleted event. * * @param Currency $currency * @return void */ public function deleted(Currency $currency) { // Removing Entries from the Cache $this->clearCache($currency); } /** * Removing the Entity's Entries from the Cache * * @param $currency * @return void */ private function clearCache($currency): void { try { cache()->flush(); } catch (Exception $e) { } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.1 |
proxy
|
phpinfo
|
ÐаÑтройка