How to implement Laravel 4 Partial Views - Binding data to partial views

前端 未结 3 1214
心在旅途
心在旅途 2021-01-06 07:11

I am debating whether I should use Laravel to build an online store.

Requirement - Show a shopping cart in sidebar with product listing in main area. i need to bind

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 07:52

    You can simply do

    @include('partials.products', array('data'=>'here'))
    

提交回复
热议问题