I am new in laravel 5 .
I am working on larvel page security and i have to prevent open some page or Url
but when i use {{ Redirect::to('/dashboard') }} in view it is not working .
Please help me to find a way to use Redirect / Url in laravel view (Blade template)
I have already tried :-
{{ url('/dashboard') }}{{ Redirect::to('/dashboard') }}
Code :-
@if(Auth::user()->role_id == 1)
{{ 'Page' }}
@else
{{ Redirect::to('/dashboard') }}
@endif
role_id == 1- Nicolas