コード例 #1
0
 public function compose(View $view)
 {
     if ($view->getName() == 'frontend.property.compare_bar') {
         $propertiesInComparison = PropertyCompareHelper::getCurrentList();
         $view->with('propertiesInComparison', $propertiesInComparison);
     }
 }
コード例 #2
0
 public function getCompare()
 {
     $properties = PropertyCompareHelper::getCurrentList();
     return view('frontend.property.compare', ['properties' => $properties]);
 }