mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-07 05:03:18 +02:00
* feat(admin): add settings to override config values * style: fix StyleCI findings * refactor: use model constants in migration
34 lines
530 B
PHP
34 lines
530 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Events\Admin\Setting;
|
|
|
|
use App\Models\Admin\Setting;
|
|
|
|
/**
|
|
* Class SettingEvent.
|
|
*/
|
|
abstract class SettingEvent
|
|
{
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param Setting $setting
|
|
* @return void
|
|
*/
|
|
public function __construct(protected Setting $setting)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Get the setting that has fired this event.
|
|
*
|
|
* @return Setting
|
|
*/
|
|
public function getSetting(): Setting
|
|
{
|
|
return $this->setting;
|
|
}
|
|
}
|