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
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\View\Composers\Posts;
use App\Repositories\Menu\MenuRepositoryInterface;
use App\Repositories\Post\PostRepositoryInterface;
use Illuminate\View\View;
class PostComposer
{
protected $postRepositoryInterface;
public function __construct(PostRepositoryInterface $postRepositoryInterface)
{
$this->postRepositoryInterface = $postRepositoryInterface;
}
public function compose(View $view): void
{
$posts = $this->postRepositoryInterface->getAll();
$view->with('posts', $posts);
}
}