for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaravelModulize\Services\Loaders;
class MigrationsLoader extends BaseFileLoader
{
/**
* Load the files to load and register them
*
* @param string $module
* @return void
*/
public function loadFiles(string $module): void
if (!$this->getFilesToLoad($module)->isEmpty()) {
$this->repo->addMigration($this->getFilesPath($module));
}
* Retrieve the path where the files to load should be at
* @return string
public function getFilesPath(string $module): string
return $this->repo->getModulePath($module) . "/database/migrations";
* Retrieve the namespace to be used when registering the files
public function getNamespace(string $module): string
return $this->repo
->getModuleNamespace($module);