Laravel 4 - Blade Templating - How to properly Link to Route?

前端 未结 6 1509
我在风中等你
我在风中等你 2020-12-15 03:51

I want to create a resourceful link with Laravel. Normally I just use the {{ link_to_route(\'Yadayadayada.route\', \'LinkName\', $params }}

But in this

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 04:40

    There are no of ways to use route in blade:

    1. Use Action

    {{URL::action('DemoController@index',$params)}}
    

    2. Use Route

    {{ URL::route('route/', $params) }}
    

    3. Use URL to

    {{ URL::to('route/name', $params)) }}
    

提交回复
热议问题