Laravel 4: What to pass as parameters to the Url class?

前端 未结 3 1681
逝去的感伤
逝去的感伤 2020-12-28 17:28

Can somebody explain the syntax of the Laravel 4 UrlGenerator class? I can\'t find it in the documentation.

I have the following route:



        
3条回答
  •  灰色年华
    2020-12-28 18:20

    For those using PHP 5.3, this should be:

    URL::action('UsersController@show', array('123') )
    

提交回复
热议问题