Book Checkout & Book Checkin Flow Feature Test With TDD - Part 2
From unit tests into features test. Let's handle the actual endpoints that our app will consume to checkout and checkin some books.
Book Checkout & Book Checkin Flow With TDD
It's time for us to drive out the checkout and checkin functionality for our app. Let's start with the flow of checking out a book and then the flow for checking one out. Let's also handle some edge cases along the way using test driven development to guide us.
Implementing a firstOrCreate Author Record With TDD
Let's dig through the code and find a way to create authors on the fly for our books. The idea being that a user could type into a "predictive" box in the UI and get a filtered author's list.
Deleting a Record, Asserting Instance Of & Carbon Parse
First of, let's post our project up to Github and then start by implementing the delete sequence for a book. Then let's explore how to parse a date and return a Carbon instance. Finally, let's create a path helper for our book model and refactor.