Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Hidden Field Gives error #4814

Closed
Elshaden opened this issue Sep 18, 2022 · 0 comments
Closed

Hidden Field Gives error #4814

Elshaden opened this issue Sep 18, 2022 · 0 comments
Labels
needs more info More information is required

Comments

@Elshaden
Copy link

Elshaden commented Sep 18, 2022

  • Laravel Version: 9.3.1
  • Nova Version: 4.14.3
  • PHP Version: 8.1.#
  • Database Driver & Version:
  • Operating System and Version: #.#
  • Browser type and version: #.#
  • Reproduction Repository: https://github.com/###/###

Description:

Using the Hidden Field gives error and not working as described

In My Resource :

   Hidden::make('User', 'user_id')->default(function ($request) {
                return $request->user()->id;
            }),

In Browser Inspect

<div class="hidden" errors="[object Object]" index="0"><input type="hidden" value="5"></div>

The Field Value is not passed on

@crynobone crynobone added the needs more info More information is required label Sep 18, 2022
@laravel laravel locked and limited conversation to collaborators Sep 18, 2022
@crynobone crynobone converted this issue into discussion #4815 Sep 18, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
needs more info More information is required
Projects
None yet
Development

No branches or pull requests

2 participants