Skip to content

Commit 4ed4083

Browse files
committed
Fix relationships
1 parent 489d727 commit 4ed4083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/CrudModelCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function buildClass($name)
7070
$table = $this->option('table') ?: $this->argument('name');
7171
$fillable = $this->option('fillable');
7272
$primaryKey = $this->option('pk');
73-
$relationships = trim($this->option('relationships')) != '' ? explode(',', trim($this->option('relationships'))) : [];
73+
$relationships = trim($this->option('relationships')) != '' ? explode(';', trim($this->option('relationships'))) : [];
7474
$softDeletes = $this->option('soft-deletes');
7575

7676
if (!empty($primaryKey)) {

0 commit comments

Comments
 (0)