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
Post a Comment