Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\View\Composers;
use App\Repositories\Menu\MenuRepositoryInterface;
use Illuminate\View\View;
class MenuComposer
{
protected MenuRepositoryInterface $menuRepositoryInterface;
public function __construct(MenuRepositoryInterface $menuRepositoryInterface)
{
$this->menuRepositoryInterface = $menuRepositoryInterface;
}
public function compose(View $view): void
{
$menus = $this->menuRepositoryInterface->getTree();
$view->with('menus', $menus);
}
}