Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to redirect to another page from laravel blade

@if(Auth::user()->role_id == 1)
  {{ 'Page' }}
@else 
  <script>window.location = "/dashboard";</script>
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redirect #page #laravel #blade
ADD COMMENT
Topic
Name
1+4 =