Monday, 15 March 2010

php - Showing validation errors to view -


I want to exclude validation errors for users in a comma.

i.e.,

< P> Username field is required, Password field is required

So far I can send a verification error message in this type of view

  $ validation- & Gt ; Message ()  

But the only thing I can not do is

  @if (session :: is ('message')) & Lt ; P class = "alert" & gt; {{Session :: Mill ('Message')}} & lt; / P & gt; @endif  

or

  {{$ errors-> First ('username', '

The only thing that I I can give messages as normal text.

Update:

Then, how do I verify the verification message for plain view (instead of array or object)

I mean that I can only do any work in the controller and not in the controller

  return implode (',', '$ validation- & gt; errors () - & gt; all ());  

No comments:

Post a Comment