You Are Here: Home » Uncategorized

Laravel: How to Catch all routes / any routes?

By Debjit on August 18th, 2021 
Advertisement
Route::any( '{catchall}', function(){
        // return redirect( 'https://digitizor.com' )
        // OR, Do something here
})->where( 'catchall', '.*' );

Advertisement







Laravel: How to Catch all routes / any routes? was originally published on Digitizor.com on August 18, 2021 - 12:37 pm (Indian Standard Time)