src/Orangehill/Iseed/IseedCommand.php
protected function generateFileName($table, $prefix=null, $suffix=null)
    {
        if (!\Schema::connection($this->option('database') ? $this->option('database') : config('database.default'))->hasTable($table)) {
            throw new TableNotFoundException("Table $table was not found.");
        }

        // Generate class name and file name
        $className = app('iseed')->generateClassName($table, $prefix, $suffix);
        $seedPath = base_path() . config('iseed::config.path');
        return [$seedPath . '/' . $className . '.php', $className . '.php'];
    }
protected function generateFileName($table, $prefix=null, $suffix=null)
    {
        if (!\Schema::connection($this->option('database') ? $this->option('database') : config('database.default'))->hasTable($table)) {
            throw new TableNotFoundException("Table $table was not found.");
        }

        // Generate class name and file name
        $className = app('iseed')->generateClassName($table, $prefix, $suffix);
        $seedPath = base_path() . config('iseed::config.path');
        return [$seedPath . '/' . $className . '.php', $className . '.php'];
    }
protected function generateFileName ( $ table , $ prefix = null , $ suffix = null ) { if ( ! \ Schema :: connection ( $ this -> option ( 'database' ) ? $ this -> option ( 'database' ) : config ( 'database.default' ) ) -> hasTable ( $ table ) ) { throw new TableNotFoundException ( "Table $table was not found." ) ; } // Generate class name and file name $ className = app ( 'iseed' ) -> generateClassName ( $ table , $ prefix , $ suffix ) ; $ seedPath = base_path ( ) . config ( 'iseed::config.path' ) ; return [ $ seedPath . '/' . $ className . '.php' , $ className . '.php' ] ; }
Generate file name, to be used in test wether seed file already exist

@param  string $table
@return string
Generate file name to be used in test wether seed file already exist