public function makeTheProvider($config, $moduleDirectory, $table)
    {
        $provider = file_get_contents(__DIR__.'/../Templates/CRUD/Provider.txt');

        foreach ($config as $key => $value) {
            $provider = str_replace($key, $value, $provider);
        }

        return file_put_contents($moduleDirectory.'/'.ucfirst(str_plural($table)).'ModuleProvider.php', $provider);
    }
public function makeTheProvider($config, $moduleDirectory, $table)
    {
        $provider = file_get_contents(__DIR__.'/../Templates/CRUD/Provider.txt');

        foreach ($config as $key => $value) {
            $provider = str_replace($key, $value, $provider);
        }

        return file_put_contents($moduleDirectory.'/'.ucfirst(str_plural($table)).'ModuleProvider.php', $provider);
    }
public function makeTheProvider ( $ config , $ moduleDirectory , $ table ) { $ provider = file_get_contents ( __DIR__ . '/../Templates/CRUD/Provider.txt' ) ; foreach ( $ config as $ key => $ value ) { $ provider = str_replace ( $ key , $ value , $ provider ) ; } return file_put_contents ( $ moduleDirectory . '/' . ucfirst ( str_plural ( $ table ) ) . 'ModuleProvider.php' , $ provider ) ; }
Generate the provider file.

@param array $config

@return bool
Generate the provider file .