laravel show error code example
Example 1: how to hide error in laravel
Go inside env file :
APP_DEBUG=true
if you didn't find it go to config/app.php :
'debug' => false,
Example 2: $errors show this error in laravel
<input type="text" name="firstname">
@if($errors->has('firstname'))
<div class="error">{{ $errors->first('firstname') }}</div>
@endif