Let's add a strategy for filling data automatically #48
Open
Description
I have a scenario in my mind let's see how it works :
- I wanna write TDD tests for a book store management.
- Let's start with the Book entity & CRUD
- I start by creating a BookTest and try to store a new book with POST method.
$this->get(route('books.store'), [ 'name' => 'Programming', 'publisher' => 'Laravel', 'author' => 'Taylor Outwell', ]);
- Now I start to enter CRUD generator command for my book, when the command executes, it will go through its tests and if there is an available test, it will look for POST method and the data we are passing to that route, it will collect the data we are passing and replace it to Form Request & Model fillables property.
Now we just need to add validation and most of the work is done by the command generator...