Example Analysis of Laravel Parameter Verification
This article shares with you the content of a sample analysis of Laravel parameter validation. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
How was the validator created? who created it?
The Laravel document calls the validator, not only through the controller, but also through Facades to create the validator object. Validator::make ($data,$rule,$message).
'Validator' = > Illuminate\ Support\ Facades\ Validator::class is registered in config/app.php.