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

Fix publish add_alt_to_media migration #353

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

jason-nabooki
Copy link
Contributor

Fixing maybe a copy/paste bug in the service provider to allow the add_alt_to_media migration to be published.

@frasmage
Copy link
Collaborator

🤦

@frasmage frasmage merged commit 2b3d1be into plank:master Apr 11, 2024
1 check passed
@jason-nabooki jason-nabooki deleted the patch-2 branch April 11, 2024 04:39
@CodeWith-PeterBull
Copy link

I keep getting this issue with laravel 11 after tpackage inclusion and pulishing the service provider. When i delete the migrations created after publishing the provider, the issue gets resolved. Pretty inconvinient though.

======================================================================

Cannot declare class CreateMediableTables, because the name is already in use

at database\migrations\2024_06_24_181155_create_mediable_tables.php:8
4▕ use Illuminate\Database\Schema\Blueprint;
5▕ use Illuminate\Support\Facades\Schema;
6▕ use Plank\Mediable\Media;
7▕
➜ 8▕ class CreateMediableTables extends Migration
9▕ {
10▕ /**
11▕ * Run the migrations.
12▕ *

Whoops\Exception\ErrorException

Cannot declare class CreateMediableTables, because the name is already in use

at database\migrations\2024_06_24_181155_create_mediable_tables.php:8
4▕ use Illuminate\Database\Schema\Blueprint;
5▕ use Illuminate\Support\Facades\Schema;
6▕ use Plank\Mediable\Media;
7▕
➜ 8▕ class CreateMediableTables extends Migration
9▕ {
10▕ /**
11▕ * Run the migrations.
12▕ *

1 vendor\filp\whoops\src\Whoops\Run.php:510
Whoops\Run::handleError("Cannot declare class CreateMediableTables, because
the name is already in use", "C:\Users\Peter Maina\Desktop\QuestPinnacleInvestment
sManagementSystem\database\migrations\2024_06_24_181155_create_mediable_tables.php
")

2 [internal]:0
Whoops\Run::handleShutdown()

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.

3 participants