mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-27 20:37:55 +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()
|
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);
|
$content = Yaml::parse($content);
|
||||||
|
|
||||||
foreach ($content as $model => $i){
|
foreach ($content as $model => $i){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user