validate([ 'title' => 'required|max:255', 'is_public' => 'boolean', ]); if ($validated) { return redirect() ->route('bucket.get', ['uuid' => 12]); } else { return back() ->withInput(); } } }