Skip to content

Instantly share code, notes, and snippets.

@beyazitkolemen
Created August 1, 2017 01:32
Show Gist options
  • Save beyazitkolemen/9da26c0d423b437f78b626b41c05b8e5 to your computer and use it in GitHub Desktop.
Save beyazitkolemen/9da26c0d423b437f78b626b41c05b8e5 to your computer and use it in GitHub Desktop.
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