-
src/Helpers/helpers.php
Open in GitHub// if (!function_exists('fireCmsEvent')) { /** * @param string $eventName * @param array $input * @return void */ function fireCmsEvent($eventName, $input = []) { $method = method_exists(\Illuminate\Events\Dispatcher::class, 'dispatch') ? 'dispatch' : 'fire'; Event::$method($eventName, [$eventName, $input]); } } //
-
src/Http/Controllers/Admin/SettingController.php
Open in GitHubclass SettingController extends Controller { // public function update($section, Request $request) { if (array_key_exists('cancel', $request->all())) { return $this->redirector->back(); } $this->settings->saveAll($request->except('_token'), $section); fireCmsEvent('cms-settings.saved'); return $this->redirector->back(); } }