mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-13 05:47:56 +03:00
fix: add path if option is passed
This commit is contained in:
parent
b22b59ab5d
commit
5662a5d4bb
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user