php - Laravel 5 Routing ALL routes -


i new laravel, , im trying redirect incoming requests /example examplecontroller@index using route

 route::match(['get', 'post'], '/example/{any}', ['uses' =>'examplecontroller@index'])->where('any', '.*'); 

everything works fine /example/any/any/any, getting no input file specified. error when try /example/any/any/any.php please me solve problem. thanks.

route::match used match multiple http verbs route.

as far know can't achieve want, , there no point this.

what may need route::resource check docs


Comments