ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 Current Path : /var/www/yapwebtv.com/app/Http/View/Composers/ |
| Current File : /var/www/yapwebtv.com/app/Http/View/Composers/MenuComposer.php |
<?php
namespace App\Http\View\Composers;
use App\Services\MenuService;
use App\Services\WidgetService;
use Illuminate\Support\Facades\Cache;
use Illuminate\View\View;
class MenuComposer
{
protected $menuService;
public function __construct(MenuService $menuService)
{
$this->menuService = $menuService;
}
public function compose(View $view)
{
$menuDetails = Cache::rememberForever('menuDetails' , function (){
return $this->menuService->getMenuDetails();
});
$view->with('menuDetails', $menuDetails);
}
}