Voyager: Relation Modal Popup - "Namespace" Placeholder

Created on 29 Sep 2017  路  5Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.5.X
  • Voyager Version: 1.0.4
  • PHP Version: 7.1
  • Database Driver & Version: N/A

Description:

Relation creating model implies that it needs just the Namespace but it actually needs the full model name.

I was setting up a ManyToMany but this may apply to other types too.

So, I put in:

  • App\

Instead of...

  • App\AuthorBook

Steps To Reproduce:

Setup voyager with two relatable BREADs and a pivot table (although this probably applies to other types too). Then create a relationship and put just App\ in the field with the current Namespace holder (in grey by default).

design help wanted open for suggestions

All 5 comments

I agree, Namespace isn't specific enough for this. Do you have any suggestions?

http://php.net/manual/en/language.namespaces.rules.php

Fully qualified name

This is an identifier with a namespace separator that begins with a namespace
separator, such as \Foo\Bar. The namespace \Foo is also a fully qualified name.

Fully Qualified Name or Fully Qualified Class Name might be good and if it's translatable you could probably look at the manual's various translations for the foreign word equivalent(s).

+1 it is very confusing for newcomers. I spent 10 minutes debugging until I realized that it require the model FQDN.

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