Search
 
SCRIPT & CODE EXAMPLE
 

PHP

multiple routes same controller laravel

$router->get('/{home?}', 'SiteController@home')
       ->where('home', '(home|another_home_route)')
       ->name('home');
Comment

PREVIOUS NEXT
Code Example
Php :: create database from migration laravel for all 
Php :: laravel bootstrap-auth setup 
Php :: Wordpress disable admin bar to users except admin 
Php :: foreach in laravel 
Php :: laravel validation get failed rules 
Php :: calculate total time from start and end datetime in php 
Php :: php is defined 
Php :: laravel pluck relationship 
Php :: laravel has one 
Php :: codeigniter order_by 
Php :: laravel collection remove empty 
Php :: php ternary shorthand 
Php :: gd php extension 
Php :: php timestamp to seconds 
Php :: php serialize() 
Php :: laravel routes return view in web.php 
Php :: run a php project 
Php :: is_unique in codeigniter form validation 
Php :: symfony set content type 
Php :: readfile in php 
Php :: php count vs sizeof 
Php :: reCAPTCHA v3 PHP 
Php :: laravel Service Unavailable 
Php :: woocommerce get orders by user id 
Php :: strtotime to date php 
Php :: user location using php 
Php :: install php version 7.3 ubuntu 
Php :: laravel check environment hlper 
Php :: return two variables php 
Php :: Mixed Content: The page at was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =