rollback: remove path (I just understood that it was only for the model...)

This commit is contained in:
Stéphane 2017-05-07 21:58:49 +02:00
parent 7f1b5407ee
commit 7d42825426
No known key found for this signature in database
GPG Key ID: B426747B415ED543

View File

@ -17,12 +17,7 @@ class ResourcesCommand extends BaseCommand {
public function handle() public function handle()
{ {
$path = ''; $content = $this->fs->get($this->argument('file'));
if (! is_null($this->option('path'))) {
$path = $this->option('path');
}
$content = $this->fs->get($path . $this->argument('file'));
$content = Yaml::parse($content); $content = Yaml::parse($content);
foreach ($content as $model => $i){ foreach ($content as $model => $i){