title: Laravel: Display html in app/http/requests custom error messages
body: <p>I'm working on a custom request validator with custom error messages for Laravel 5. Is there a way I could display HTML in returned messages? </p>
  
  <p>My goal is to be able to include links in the message, ie:</p>
  
  <pre><code>"You need a lottery ticket number. Don't have one? &lt;a href='#'&gt;Register Here.&lt;/a&gt;"
  </code></pre>
  
  <p>I've searched different forums and couldn't find a solution. Below isn't applicable in my case:
  <a href="https://laracasts.com/discuss/channels/general-discussion/html-in-httprequests-custom-error-messages" rel="nofollow">https://laracasts.com/discuss/channels/general-discussion/html-in-httprequests-custom-error-messages</a></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>SOLVED.</p>
  
  <p>I'm using custom messages set in a custom Request:</p>
  
  <pre><code> public function messages()
  {
      return [
          'dob.eighteen'    =&gt; 'You must be 18 or older to take part in this competition.',
          'photo.required'    =&gt; 'You must upload a photo of the space.',
          'photo.mimes' =&gt; 'The uploaded file must be a photo in .jpeg or .png format.',
          'name.required'      =&gt; 'Please enter your full name.',
          'ticket.required'      =&gt; 'You need a ticket number to enter. Don\'t have one? &lt;a href="#"&gt;Register Here.&lt;/a&gt;',
          'email.required'      =&gt; 'The e-mail field is required.',
          'dob.required'      =&gt; 'The date of birth is required.',
          'postcode.required'      =&gt; 'The date of birth is required.',
          'postcode.postcode'      =&gt; 'The postcode you entered is incorrect.',        ];
  }
  </code></pre>
  
  <p>The reason why the above link wasn't applicable is because I want to keep my code neat and store all the error messages in one file together with request validation rules.</p>
  
  <p>The solution was so simple that I completely missed it before. </p>
  
  <p>Thanks for helping.</p>