diff --git a/app/Http/Filters/GuestFilter.php b/app/Http/Filters/GuestFilter.php new file mode 100644 index 00000000..ac7c1de0 --- /dev/null +++ b/app/Http/Filters/GuestFilter.php @@ -0,0 +1,47 @@ +auth = $auth; + $this->response = $response; + } + + /** + * Run the request filter. + * + * @return mixed + */ + public function filter() + { + if ($this->auth->check()) + { + return $this->response->redirectTo('/'); + } + } + +} \ No newline at end of file