Laravel 4 validation in bootstrap modal
I'm a newbie to Laravel 4, and I'm trying to get a form validation in bootstrap modal. My modal have a form with a text input and a submit button, and I want that when the validation fails, the modal show me the error. But the modal, after the validation and the page refresh, is closed. Here is the code from the controller and the view: Controller code: public function postAvatar() { $avatar_rules = array( 'avatar_src' => 'url', ); $validator = Validator::make(Input::all(), $avatar_rules); $validator->setAttributeNames(User::$names_attr); if ($validator->passes()) { $avatar_src = (Input::get(