mirror of https://github.com/4xmen/xshop.git
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.
51 lines
837 B
PHTML
51 lines
837 B
PHTML
4 weeks ago
|
<?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
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
}
|