PATH:
home
/
lab2454c
/
costbloc.com
/
app
/
Http
/
Controllers
<?php /** * @package OrderSettingController * @author TechVillage <support@techvill.org> * @contributor Al Mamun <[almamun.techvill@gmail.com]> * @created 17-10-2022 */ namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Preference; class OrderSettingController extends Controller { public function __construct(Request $request) { //this middleware should be for POST request only if ($request->isMethod('post')) { $this->middleware('checkForDemoMode')->only('index'); } } /** * Order general setting * @param Request $request * @return \Illuminate\Contracts\View\View */ public function index(Request $request) { if ($request->isMethod('GET')) { $data['list_menu'] = 'option'; return view('admin.order_settings.index', $data); } foreach ($request->only('order_prefix', 'order_refund', 'guest_order') as $key => $value) { (new Preference())->storeOrUpdate([ 'category' => 'preference', 'field' => $key, 'value' => $value ]); } $response = $this->messageArray(__('The :x has been successfully saved.', ['x' => __('Order Setting')]), 'success'); $this->setSessionValue($response); return redirect()->route('order.setting.option'); } }
[-] CategoryController.php
[edit]
[-] ImportController.php
[edit]
[-] PermissionRoleController.php
[edit]
[-] BatchController.php
[edit]
[-] WithdrawalController.php
[edit]
[-] SsoController.php
[edit]
[-] ExportController.php
[edit]
[-] OrderStatusController.php
[edit]
[-] ProductSettingController.php
[edit]
[+]
..
[-] UserController.php
[edit]
[+]
Api
[-] EmailController.php
[edit]
[-] AttributeController.php
[edit]
[-] MailTemplateController.php
[edit]
[+]
Site
[-] AdminOrderController.php
[edit]
[-] AttributeGroupController.php
[edit]
[-] EmailConfigurationController.php
[edit]
[-] OrderSettingController.php
[edit]
[-] Controller.php
[edit]
[-] AccountSettingController.php
[edit]
[-] SystemInfoController.php
[edit]
[-] LoginController.php
[edit]
[-] AddonsMangerController.php
[edit]
[-] CurrencyController.php
[edit]
[-] BrandController.php
[edit]
[-] FilesController.php
[edit]
[-] ReviewController.php
[edit]
[-] LanguageController.php
[edit]
[-] RoleController.php
[edit]
[-] TransactionController.php
[edit]
[-] VendorController.php
[edit]
[-] PreferenceController.php
[edit]
[-] CompanySettingController.php
[edit]
[-] ProductController.php
[edit]
[-] DashboardController.php
[edit]
[-] MaintenanceModeController.php
[edit]
[+]
Vendor