Support the ongoing development of Laravel.io →
posted 10 years ago
Forms
Last updated 2 years ago.
0

{{ Form::text('category_id', $categories) }} - $categories is an array, yet you're using a Form::text field. Surely this should be a select?

Last updated 2 years ago.
0

Big thank , you are right.

Last updated 2 years ago.
0

Hi,

A very useful question on this topic remains unanswered to me: "how i can identify which line produce this errror"?

I'm running Laravel 5 and had the same error message. Nothing in the stack trace or in the log files pointed me to root cause of the error. As I had a quite long legacy view (more than 2000 lines) it took me a long time to comment/uncomment each block until figure out which one was the guilty one.

Any ideas on how to get the view line shown in the error message or in the logs?

0

Chop the giant view up into many smaller partials and your debugging will be much easier.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mardon mardon Joined 19 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.