src/Fakers/TaxonomyFaker.php
public function parameters(bool $parent = true)
    {
        $faker = Factory::create();

        $bag = new Bag();
        $bag->set('name', $faker->name);
        $bag->set('description', $faker->text);
        $bag->set('enabled', 1);
        $bag->set('notes', $faker->text);

        if ($parent === true) {
            $bag->set('parent', TaxonomyFaker::make()->parameters(false)->toArray());
        }

        return $bag;
    }
public function parameters(bool $parent = true)
    {
        $faker = Factory::create();

        $bag = new Bag();
        $bag->set('name', $faker->name);
        $bag->set('description', $faker->text);
        $bag->set('enabled', 1);
        $bag->set('notes', $faker->text);

        if ($parent === true) {
            $bag->set('parent', TaxonomyFaker::make()->parameters(false)->toArray());
        }

        return $bag;
    }
@param bool $parent

@return \Railken\Bag