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

前端 未结 6 1515
我在风中等你
我在风中等你 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:44

    if you define Route name you can use that in your blade :

     Route::get('/admin/transfer/forms-list', [
        'as'   => 'transfer.formsList',
        'uses' => 'Website\TransferController@IndexTransferForms'
    ]);
    

    now you can use that in your blade like this :

    
                        discard
    

提交回复
热议问题