You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/app/Observers/SettingObsever.php

51 lines
837 B
PHP

<?php
namespace App\Observers;
use App\Models\Setting;
class SettingObsever
{
/**
* Handle the Setting "created" event.
*/
public function created(Setting $setting): void
{
//
$setting->raw = $setting->value;
$setting->save();
}
/**
* Handle the Setting "updated" event.
*/
public function updated(Setting $setting): void
{
//
}
/**
* Handle the Setting "deleted" event.
*/
public function deleted(Setting $setting): void
{
//
}
/**
* Handle the Setting "restored" event.
*/
public function restored(Setting $setting): void
{
//
}
/**
* Handle the Setting "force deleted" event.
*/
public function forceDeleted(Setting $setting): void
{
//
}
}