Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to redirect to another page from laravel blade

@if(Auth::user()->role_id == 1)
  {{ 'Page' }}
@else 
  <script>window.location = "/dashboard";</script>
@endif
Comment

PREVIOUS NEXT
Code Example
Php :: laravel route view 
Php :: laravel seed fresh 
Php :: how to check laravel version in cmd 
Php :: random number laravel faker 
Php :: laravel if syntax 
Php :: multiply a string php 
Php :: optimize clear laravel not working 
Php :: check type in php 
Php :: laravel php artisan tinker test email 
Php :: if browser url is having query string after domain name in it check using php 
Php :: php get current time and date 
Php :: make model with migration laravel 
Php :: php echo number with decimal 
Php :: how to save file in storage folder in laravel 
Php :: laravel validation unique if this field is changed 
Php :: php convert to lowercase 
Php :: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) 
Php :: remove whitespace from string php 
Php :: php full day name 
Php :: php failed to open stream: Permission denied iis 
Php :: enum in laravel migration 
Php :: php creazione numero random 
Php :: composer create project laravel 
Php :: E: Unable to locate package php8.0 
Php :: foreach stdclass object php 
Php :: iteration in php 
Php :: php get first key of array 
Php :: php combine arrays 
Php :: how to use flash message in laravel 
Php :: laravel get data from this year 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =