Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got 404 if only use new Commenter() #58

Open
rezabrnt opened this issue Dec 16, 2022 · 1 comment
Open

Got 404 if only use new Commenter() #58

rezabrnt opened this issue Dec 16, 2022 · 1 comment

Comments

@rezabrnt
Copy link

Using the Commenter() without the CommentsPanel() will throw a 404 error.

@mrvnklm
Copy link

mrvnklm commented Mar 22, 2023

same here, workaround I use:

    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Laravel\Nova\Http\Requests\NovaRequest  $request
     * @return array
     */
    public function fields(NovaRequest $request)
    {
        return [
            MorphMany::make(
                'Comments',
                'comments',
                \KirschbaumDevelopment\NovaComments\Nova\Comment::class
            )->onlyOnForms(),
            new Commenter(),
        ];
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants