Пример #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]);
 }