laravel - has() function on empty ErrorBag returns different boolean result depending on environment -
in laravel app, have discrepancy on output of following line:
$errors->has();
depending on environment; returns false
locally, true
on stage , prod.
i dumped defined vars , same empty array in both:
"errors" => viewerrorbag {#170 ▼ #bags: [] }
i $errors->count();
returns 0
in both envs.
what reason?
Comments
Post a Comment