PATH:
home
/
rwabteecom
/
project_11
/
app
/
Http
/
Controllers
/
Admin
/
Setting
/
Editing: FirebaseSettingController.php
<?php namespace App\Http\Controllers\Admin\Setting; use App\Http\Controllers\Controller; use App\Http\Requests\Admin\Setting\UpdateFirebaseRequest; use App\Services\Settings\SettingServices; use Exception; use Log; class FirebaseSettingController extends Controller { public function __construct(private readonly SettingServices $settingServices) { } public function index() { return view('admin.pages.settings.firebase')->with([ "gs" => $this->settingServices->gs(), ]); } public function store(UpdateFirebaseRequest $request) { try { $this->settingServices->updateFirebase($request); } catch (Exception $exception) { Log::error($exception->getMessage()); return back()->with("error", $exception->getMessage())->withInput(); } return back()->with("success", __("Firebase Setting Updated Successfully")); } }
SAVE
CANCEL