'required|min:3', 'last_name' => 'required|min:3', 'website' => 'url', 'gravatar' => 'email', ); // Create a new validator instance from our validation rules $validator = Validator::make(Input::all(), $rules); // If validation fails, we'll exit the operation now. if ($validator->fails()) { // Ooops.. something went wrong return Redirect::back()->withInput()->withErrors($validator); } // Grab the user $user = Sentry::getUser(); // Update the user information $user->first_name = Input::get('first_name'); $user->last_name = Input::get('last_name'); $user->website = Input::get('website'); $user->country = Input::get('country'); $user->gravatar = Input::get('gravatar'); $user->save(); // Redirect to the settings page return Redirect::route('profile')->with('success', 'Account successfully updated'); } }