public function run()
 {
     $keys = [];
     $user = User::find(1);
     $twitterConfig = new TwitterConfig();
     $keys['consumer_key'] = env('CONSUMER_KEY');
     $keys['consumer_key_secret'] = env('CONSUMER_KEY_SECRET');
     $keys['access_token'] = env('ACCESS_TOKEN');
     $keys['access_token_secret'] = env('ACCESS_TOKEN_SECRET');
     $keys['user_id'] = $user->id;
     $twitterConfig->fill($keys);
     $twitterConfig->save();
 }
 /**
  * Stores newly created Twitter OAuth keys in storage.
  *
  * @return Response
  */
 public function store()
 {
     //Create the validator to process input for validation.
     $input = Input::except('_token');
     $validator = Validator::make($input, TwitterConfigValidator::validationRules());
     if ($validator->fails()) {
         return Redirect::to('/admin/twitter_config')->withErrors($validator)->withInput($input);
     }
     $twitterConfig = new TwitterConfig();
     $twitterConfig->fill($input);
     $twitterConfig->save();
     Session::flash('success_message_add', 'The Twitter configuration has successfully been created and stored!');
     return Redirect::to('/admin/twitter_config');
 }