관리-도구
편집 파일: MigrationPublisher.php
<?php namespace Nwidart\Modules\Publishing; use Nwidart\Modules\Migrations\Migrator; class MigrationPublisher extends AssetPublisher { /** * Migrator */ private Migrator $migrator; /** * MigrationPublisher constructor. */ public function __construct(Migrator $migrator) { $this->migrator = $migrator; parent::__construct($migrator->getModule()); } /** * Get destination path. */ public function getDestinationPath(): string { return $this->repository->config('paths.migration'); } /** * Get source path. */ public function getSourcePath(): string { return $this->migrator->getPath(); } }