private function _seedSettings()
 {
     GeneralSettings::truncate();
     SmtpSettings::truncate();
     PaypalSettings::truncate();
     GeneralSettings::insert(['idle_timeout' => 0, 'self_signup' => 0]);
     SmtpSettings::insert(['status' => 0]);
     PaypalSettings::insert(['status' => 0, 'sandbox' => 0]);
     DirecpaySetting::insert(['status' => 0, 'sandbox' => 0]);
 }
 public function postPaypal()
 {
     if (!Input::has('id')) {
         return Redirect::route('setting.paypal')->with('error', 'Required parameter(s) missing.');
     }
     try {
         $input = Input::all();
         $setting = PaypalSettings::find($input['id']);
         $setting->fill($input);
         $this->flash($setting->save());
         return Redirect::route('setting.paypal');
     } catch (Illuminate\Database\Eloquent\ModelNotFoundException $e) {
         App::abort(404);
     }
 }