storePost($customPostType, $request->validated()); return redirect()->route('admin.posts.index', $customPostType->slug) ->with('success', $customPostType->singular_name . ' created successfully.'); } }