We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b89558b commit 17df0e3Copy full SHA for 17df0e3
src/Generators/ModelGenerator.php
@@ -190,7 +190,6 @@ protected function buildRelationships(Model $model)
190
191
foreach ($model->relationships() as $type => $references) {
192
foreach ($references as $reference) {
193
- // if reference starts with \ , we assume developer is using a fully namespaced model
194
$is_model_fqn = Str::startsWith($reference, '\\');
195
196
$custom_template = $template;
@@ -218,8 +217,6 @@ protected function buildRelationships(Model $model)
218
217
}
219
220
221
- // if full model namespace is proviced we will not try to infer it,
222
- // we use the namespace as developer gives us
223
if ($is_model_fqn) {
224
$fqcn = $class ?? $column_name;
225
$class_name = Str::afterLast($fqcn, '\\');
0 commit comments