Appearance
Request
- Do not use the
authorize()method in Form Request classes. Handle authorization in controllers or dedicated classes. - To get data from the URI query, use
$request->query(...)instead of$request->input(...)and$request->get(...) - Prefer using type-aware get methods:
$request->integer(...)$request->float(...)$request->array(...)- Do not use ~
$request->string(...)~: it returnsStrinstance, do not use it (it's also inconsistent with other Laravel API likeConfig::string())