From 4ed4083e1f99d4ed95df3f79e6087bc3a9f555a5 Mon Sep 17 00:00:00 2001 From: Sohel Amin Date: Sat, 31 Mar 2018 12:29:14 +0600 Subject: [PATCH] Fix relationships --- src/Commands/CrudModelCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/CrudModelCommand.php b/src/Commands/CrudModelCommand.php index 2bb7352..bcaecd4 100644 --- a/src/Commands/CrudModelCommand.php +++ b/src/Commands/CrudModelCommand.php @@ -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)) {