mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-27 06:25:28 +03:00
rollback: remove path (I just understood that it was only for the model...)
This commit is contained in:
parent
7f1b5407ee
commit
7d42825426
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user