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