ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/app/Observers/
Upload File :
Current File : /home2/selectio/public_html/fms-worksuite/app/Observers/GlobalSettingObserver.php

<?php

namespace App\Observers;

use App\Models\GlobalSetting;

class GlobalSettingObserver
{

    public function saving(GlobalSetting $model)
    {
        cache()->forget('global_setting');

        return $model;
    }

    public function updated(GlobalSetting $model)
    {
        cache()->forget('global_setting');

        return $model;
    }

    public function deleted(GlobalSetting $model)
    {
        cache()->forget('global_setting');

        return $model;
    }

}

Zerion Mini Shell 1.0