Skip to content

Commit

Permalink
Fix relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
sohelamin committed Mar 31, 2018
1 parent 489d727 commit 4ed4083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/CrudModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function buildClass($name)
$table = $this->option('table') ?: $this->argument('name');
$fillable = $this->option('fillable');
$primaryKey = $this->option('pk');
$relationships = trim($this->option('relationships')) != '' ? explode(',', trim($this->option('relationships'))) : [];
$relationships = trim($this->option('relationships')) != '' ? explode(';', trim($this->option('relationships'))) : [];
$softDeletes = $this->option('soft-deletes');

if (!empty($primaryKey)) {
Expand Down

0 comments on commit 4ed4083

Please sign in to comment.