/**
  * Show the form for editing the settings.
  *
  * @return Response
  */
 public function getSettings()
 {
     $setting = Setting::firstOrFail();
     return $this->getForm($setting);
 }
 /**
  * Set settings and language
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     Config::set(['settings' => Setting::firstOrFail()]);
     return $next($request);
 }
 public function run()
 {
     DB::table('settings')->delete();
     Setting::create(['email' => '*****@*****.**', 'facebook' => 'http://facebook.com/myProfile', 'twitter' => 'http://twitter.com/myProfile']);
 }