Skip to content

Caching problems with config:clear in cypress/support/index.js #51

@Bassadin

Description

@Bassadin

cy.artisan('config:clear', {}, { log: false });

I was having problems with Laravel using fallback DB credentials randomly instead of my .env. This results in 500 Errors when trying to get the csrf token, for example. Once I changed these lines from

cy.artisan('config:clear', {}, { log: false });

to

cy.artisan('config:cache', {}, { log: false });

everything seemed to be working. Is there anything I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions