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

Push_subscription migration creates every time on vendor:publish #153

Open
dhruv1998 opened this issue Feb 8, 2021 · 1 comment
Open

Comments

@dhruv1998
Copy link

Whenever I run vendor: publish it creates new migration for push_subscription table even though it exists in migration I check the code and I found this condition is getting fail please help to solve this issue

if (! class_exists('CreatePushSubscriptionsTable')) {
$timestamp = date('Y_m_d_His', time());

        $this->publishes([
            __DIR__.'/../migrations/create_push_subscriptions_table.php.stub' => database_path("migrations/{$timestamp}_create_push_subscriptions_table.php"),
        ], 'migrations');
    }
@logan-jobzmall
Copy link

I found that I had to composer dumpautoload after the vendor publish

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

No branches or pull requests

2 participants