Database Error!

@if($e->getCode() == 2002)

Sorry, application could not connect to the database.

{{ $e->getMessage() }}
@elseif($e->getCode() == 1045)

Could not connect to database with provided credentials.

@elseif($e->getCode() == 1044)

Database user doesn't have privileges to connect to the database.

@else

Sorry, something went wrong with the database.

@endif