fix: add path if option is passed

This commit is contained in:
Stéphane 2017-05-07 20:00:32 +02:00
parent b22b59ab5d
commit 5662a5d4bb
No known key found for this signature in database
GPG Key ID: B426747B415ED543

View File

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