public function getLinkSettings() | |
{ | |
$settings = Setting::all(); | |
return view('backend.settings.settings', compact('settings')); | |
} | |
public function postSystemSettings(Request $request) | |
{ | |
$data = $request->except(['_token', '_method']); | |
foreach ($data as $key => $value) { | |
Setting::set($key, $value); | |
} | |
Setting::save(); | |
toast()->success('Saved', 'Settings Saved'); | |
return redirect()->back(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment