B
B
BonBon Slick2017-07-09 16:26:34
Laravel
BonBon Slick, 2017-07-09 16:26:34

Is it possible to create a Create/Update Request at the same time as creating a model?

Usually I use the command php artisan make:model Model -m -c
Naturally, there is often a need to create 2 more, sometimes 3 classes, Request, on Create / Update / Delete (CUD).
Is there a command modifier? Or do it yourself in model observers when creating a model. create CUD requests as well?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-virt, 2017-07-09
@BonBonSlick

Unfortunately, there is no such artisan command. But this artisan command can be implemented by yourself, which will call several necessary artisan commands with certain parameters.
As for the ready decision, then, unfortunately, did not meet yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question