Skip to content

Let's add a strategy for filling data automatically #48

Open
@Mdhesari

Description

I have a scenario in my mind let's see how it works :

  1. I wanna write TDD tests for a book store management.
  2. Let's start with the Book entity & CRUD
  3. 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', ]);
  4. 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...

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions