Created
August 1, 2017 01:32
-
-
Save beyazitkolemen/9da26c0d423b437f78b626b41c05b8e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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