mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-05 12:08:58 +00:00
18 lines
284 B
PHP
18 lines
284 B
PHP
<?php
|
|
|
|
namespace App\Observers;
|
|
|
|
use App\Models\Config;
|
|
use Artisan;
|
|
|
|
class ConfigObserver
|
|
{
|
|
public function updated(Config $config): void
|
|
{
|
|
Artisan::call('optimize:clear');
|
|
if (! config('app.debug')) {
|
|
Artisan::call('optimize');
|
|
}
|
|
}
|
|
}
|