Skip to content

2.0.0

Choose a tag to compare

@JeffreyWay JeffreyWay released this 11 Feb 18:17
· 44 commits to master since this release
  • Increase PHP minimum to 8.0.
  • Remove support for Laravel's legacy factories.
  • Optional new object-based API for cy.create() and cy.login() that allows for relationship loading and declaring model factory states.
test('it shows blog posts', () => {
    cy.create({
        model: 'App\\Post',
        attributes: { title: 'My First Post' },
        state: ['archived'],
        load: ['author'],
        count: 10
    })
});

--

Upgrade Notes

If upgrading from version 1, be sure to manually update your cypress/support/laravel-commands.js file to match this one.