Use of "uses" in router of Laravel -


i have written , working.

route::get( 'users', [ 'uses' => 'userscontroller@index'] ); 

now removing "uses" , still working.

route::get( 'users', 'userscontroller@index' ); 

what requirement of "uses" here. pleas give view reference url.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -