Hi. I have problem with functional testing form validation. When I use $errors in my view, tests fail, because it cannot see errors. But if I add following snippet to my view (ugly, but works):
{{ $errors=Session::get('errors', new \Illuminate\Support\MessageBag) }}
It then works. How to fix it in prettier way?
EDIT: putting View::share('errors', Session::get('errors', new \Illuminate\Support\MessageBag));
to app/start/testing.php doesn't fix this.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community