Skip to content

Instantly share code, notes, and snippets.

@beyazitkolemen
Created August 1, 2017 01:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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