When using Laravel’s own auth middleware an exception would then get thrown which was being sent to Slack, hmmm. So I modified the original MyAuthMiddleware to use the Auth facade instead of a custom session key. A logout page has also been added.
10 lines
279 B
PHP
10 lines
279 B
PHP
@extends('master')
|
|
@section('title')Logout @stop
|
|
|
|
@section('content')
|
|
<h2>Logout</h2>
|
|
<form action="logout" method="post">
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
|
<input type="submit" name="submit" value="Logout">
|
|
</form>
|
|
@stop
|