src/FactoryMuffin.php
public function loadFactories($paths)
    {
        foreach ((array) $paths as $path) {
            $real = realpath($path);

            if (!$real) {
                throw new DirectoryNotFoundException($path);
            }

            if (!is_dir($real)) {
                throw new DirectoryNotFoundException($real);
            }

            $this->loadDirectory($real);
        }

        return $this;
    }
public function loadFactories($paths)
    {
        foreach ((array) $paths as $path) {
            $real = realpath($path);

            if (!$real) {
                throw new DirectoryNotFoundException($path);
            }

            if (!is_dir($real)) {
                throw new DirectoryNotFoundException($real);
            }

            $this->loadDirectory($real);
        }

        return $this;
    }
public function loadFactories ( $ paths ) { foreach ( ( array ) $ paths as $ path ) { $ real = realpath ( $ path ) ; if ( ! $ real ) { throw new DirectoryNotFoundException ( $ path ) ; } if ( ! is_dir ( $ real ) ) { throw new DirectoryNotFoundException ( $ real ) ; } $ this -> loadDirectory ( $ real ) ; } return $ this ; }
Load the specified factories.

This method expects either a single path to a directory containing php
files, or an array of directory paths, and will "require" each file.
These files should be where you define your model definitions.

@param string|string[] $paths The directory path(s) to load.

@throws \League\FactoryMuffin\Exceptions\DirectoryNotFoundException

@return \League\FactoryMuffin\FactoryMuffin
Load the specified factories .