Skip to content

How do I get migrations to work when testing within a Package (not an Application) #2478

Answered by erikn69
mv12ks asked this question in Q&A
Discussion options

You must be logged in to vote

Did you try adding

/**
 * @param  \Illuminate\Foundation\Application  $app
 * @return array
 */
protected function getPackageProviders($app)
{
    return [
        \Spatie\Permission\PermissionServiceProvider::class,
    ];
}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@mv12ks
Comment options

@parallels999
Comment options

@mv12ks
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mv12ks
Comment options

Answer selected by mv12ks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants