resources/views/layouts/login.blade.php
<!DOCTYPE html>
<html lang="pt-br">

<head>
    @include('includes.head')
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        .mdl-layout {
        	align-items: center;
          justify-content: center;
        }
        .mdl-layout__content {
        	padding: 24px;
        	flex: none;
        }
    </style>
</head>

<body>
	<div id="snackbar" class="mdl-js-snackbar mdl-snackbar">
      <div class="mdl-snackbar__text"></div>
      <button class="mdl-snackbar__action" type="button"></button>
    </div>
    
    @yield('content')
    
    
    
    @if (Session::has('error')) 
      <script>showSnackBar('{{ Session::get('error')}} ')</script> 
    @endif
    @if (!empty($errors->first('email'))) 
      <script>showSnackBar('{{ $errors->first('email') }}')</script> 
    @endif
    @if (!empty($errors->first('password'))) 
      <script>showSnackBar('{{ $errors->first('password') }}')</script> 
    @endif
</body>

</html>
