@if (Session::get('user') == NULL)
{!!Redirect::to('login')!!}
@endif
or
@if (Session::get('user') == NULL)
<script>
window.location = 'login';
</script>
@endif
或者
@unless (Auth::check())
<script>
window.location = 'login';
</script>
@endunless
<script>
window.location = 'login';
</script>
@endunless