Skip to content

Instantly share code, notes, and snippets.

@godilite
Created February 28, 2020 15:40
Show Gist options
  • Save godilite/620f6ebcf7750695896557fcf1f31ced to your computer and use it in GitHub Desktop.
Save godilite/620f6ebcf7750695896557fcf1f31ced to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{csrf_token()}}">
<title>Laravel Airlock</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href=" {{ mix('css/app.css') }}" rel="stylesheet">
</head>
<body>
@if (Auth::check())
<script>
window.Laravel = {!!json_encode([
'isLoggedin' => true,
'user' => Auth::user()
])!!}
</script>
@else
<script>
window.Laravel = {!!json_encode([
'isLoggedin' => false
])!!}
</script>
@endif
<div id="app"></div>
<script src="{{ mix('js/app.js') }}"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment