laravel return a custom error

Controller, or routing error message back using withErrors

 

 Reception using $ errors-> all () receives

Guess you like

Origin www.cnblogs.com/duansong/p/12093519.html