Voyager: Allow NULL in select dropdown for relation

Created on 16 Jun 2017  路  5Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.4
  • Voyager Version: v0.11.12
  • PHP Version: 7
  • Database Driver & Version:

Description:

I am forced to select a value for foreign key even if it is nullable, first value from parent table always selected in relation select dropdown ...

Regards,

Steps To Reproduce:

Most helpful comment

This worked :)

{
    "relationship": {
        "key": "id",
        "label": "name"
    },
    "default": "",
    "null": "",
    "options": {
        "": "-- None --"
    }
}

All 5 comments

This worked :)

{
    "relationship": {
        "key": "id",
        "label": "name"
    },
    "default": "",
    "null": "",
    "options": {
        "": "-- None --"
    }
}

tgc/voyager v1.0.6

The problem persists.

@ateresi, please open your own issue instead of commenting on ones that have been closed for months.

@KhalidNoufal how do you use that json?

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings