Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust installation documentation for publishing migrations and config files #3483

Merged

Conversation

LuisLeguizamon
Copy link
Contributor

In order to publish migrations or config files using the 'php artisan vendor:publish --tag='' " ' command, it is necessary to adjust the tag by adding the 'package short name' with a slash (in this case, 'medialibrary-'). This adjustment is required for compatibility with the following code snippet in the PackageServiceProvider from Spatie\LaravelPackageTools:
$this->publishes([
$filePath => $this->generateMigrationName(
$migrationFileName,
$now->addSecond()
), ], "{$this->package->shortName()}-migrations");

            $this->publishes([
                $this->package->basePath("/../config/{$configFileName}.php") => config_path("{$configFileName}.php"),
            ], "{$this->package->shortName()}-config");

@freekmurze freekmurze merged commit 1973be0 into spatie:main Dec 26, 2023
5 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants