Skip to content

Conversation

@CasperLaiTW
Copy link

@CasperLaiTW CasperLaiTW commented Jun 30, 2018

Problem:

The config only support 1 namespace, and in my project, I have 2 namespaces for models.

  1. App
  2. Applications\Models

config was setup model namespace = \\App, so mean I can't switch to other namespace.

Solution:

Get full namespace(specific model), mean no need to using config model namespace.

Hope this PR can solve specific model issues

Command:

php artisan Media,\\Applications\\Models\\Media,Models\\Media

Get Model array is

array:2 [
  0 => "\App\Media"
  1 => "\Applications\Models\Media"
  2 => "\App\Models\Media"
]

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

Successfully merging this pull request may close these issues.

1 participant