This commit is contained in:
F4ilji
2026-03-20 21:47:02 +05:00
parent ae7b42acbe
commit a3948c872e
1926 changed files with 2630 additions and 270 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Containers\Dashboard\UI\WEB\Controllers;
use App\Containers\Dashboard\Tasks\GetDraftPostsTask;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class IndexDashboardController extends Controller
{
public function __construct(
private readonly GetDraftPostsTask $getDraftPostsTask,
) {}
public function __invoke(Request $request): \Inertia\Response
{
$draftPosts = $this->getDraftPostsTask->run();
return inertia()->render('Dashboard/Main', [
'draftPosts' => $draftPosts,
]);
}
}