K
K
Kekoc2018-07-09 19:10:01
Laravel
Kekoc, 2018-07-09 19:10:01

Is there an analog model in Laravel?

Hello.
In laravel, all manuals recommend validating data through requests, but what if I need validation in the console call to initialize the request? Many requests for each of the entities, the data from which I have to validate ? Is there an analogue of model from yii so that I can only check data (like my form) ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-07-09
@Sanasol

https://laravel.com/docs/5.6/validation
the validator is the same for everyone, maybe you just don’t need to use it in http controllers, since you need to pull it from the console?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question