Laravel Form Request Validation Error Issue -


i'm using form request validation (laravel 5) validate input. validates form, when doesn't through validation laravel should return automatically in-built error. stays on same page (without refreshing) , without showing error, neither putting input database

//controller public function store(storeprojectpostrequest $request) {     $input = $request->all();     project::create($input);      return redirect::route('projects.index')->with('message', 'project created'); }    //request public function rules() {     return [         'name' => 'required|max:15|alpha_num',         'slug' => 'alpha_dash|required|max:10',     ]; } 


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -