Shell B4ckd00r
Current Dir :
/
home
/
u789730693
/
domains
/
piorasplash.com
/
public_html
/
app
/
Services
/
Home
Upload
Create Dir
Create File
Curl
Current File : /home/u789730693/domains/piorasplash.com/public_html/app/Services/OtpService.php
<?php namespace App\Services; use App\Http\Requests\OtpRequest; use Exception; use Illuminate\Support\Facades\Log; use Smartisan\Settings\Facades\Settings; class OtpService { /** * @throws Exception */ public function list() { try { return Settings::group('otp')->all(); } catch (Exception $exception) { Log::info($exception->getMessage()); throw new Exception($exception->getMessage(), 422); } } /** * @param OtpRequest $request * @return * @throws Exception */ public function update(OtpRequest $request) { try { Settings::group('otp')->set($request->validated()); return $this->list(); } catch (Exception $exception) { Log::info($exception->getMessage()); throw new Exception($exception->getMessage(), 422); } } }
v.01