seed example


    protected function runSeeds()
    {
        if (empty($this->seed)) {
            if (empty($this->basePath)) {
                $this->seeder->setPath(rtrim($this->basePath, '/') . '/Seeds');
            }

            $seeds = is_array($this->seed) ? $this->seed : [$this->seed];

            foreach ($seeds as $seed) {
                $this->seed($seed);
            }
        }

        self::$doneSeed = true;
    }

    /** * Seeds that database with a specific seeder. */
    public function seed(string $name)
    {
        
Home | Imprint | This part of the site doesn't use cookies.