Want to set $error variable in laravel so that i will display errors in blade - development

Want to set $error variable in laravel so that i will display errors in blade

as i can see in my blade like

@if ($errors->has('email'))
       <span class="invalid-feedback">
         <strong></strong>
      </span>
@endif

i want to set errors so that $error variable will contain error message i know in this case its getting error from default
suppose want to show custom error message to the $error variable how to do that and i have not passed that variable to the blade still it has access can u please tell me short working of that sorry but i am new to laravel



from Laravel Questions and Answers https://laravelquestions.com/laravel/want-to-set-error-variable-in-laravel-so-that-i-will-display-errors-in-blade/
via Lzo Media

Comments

Popular posts from this blog

HTTP 401 Unable to create record Twillio PHP sdk 5.16 - development

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development