Step by Step Guide to building your first Laravel Application
Eric L. Barnes

nice tutorial :)
I’m not sure i’m understanding the part with the testing correctly tho:

  • are the instances of link persisted in the database when we run our test(s) and the method “testSubmitLinksToDb()” is called?
  • if yes, how does the insert handle the unique restriction we wrote in the migration (url should be unique yet we provide the same one each time the test is run)

Thank you for your answer

Show your support

Clapping shows how much you appreciated monter.montiro’s story.