GuestFilter.php 229 B

1234567891011121314151617181920
  1. <?php namespace App\Http\Filters;
  2. use Auth, Redirect;
  3. class GuestFilter {
  4. /**
  5. * Run the request filter.
  6. *
  7. * @return mixed
  8. */
  9. public function filter()
  10. {
  11. if (Auth::check())
  12. {
  13. return Redirect::to('/');
  14. }
  15. }
  16. }