- wip dashboard
This commit is contained in:
@@ -6,7 +6,7 @@ use App\Http\Controllers\Controller;
|
||||
use App\Repository\Interfaces\CategoryRepository;
|
||||
use App\Repository\Interfaces\ProjectRepository;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
use Inertia\Response as InertiaResponse;
|
||||
|
||||
class AdminPanelController extends Controller
|
||||
{
|
||||
@@ -18,12 +18,12 @@ class AdminPanelController extends Controller
|
||||
$this->categoryRepository->auth = true;
|
||||
}
|
||||
|
||||
public function __invoke(Request $request): View
|
||||
public function __invoke(Request $request): InertiaResponse
|
||||
{
|
||||
$categories = $this->categoryRepository->all();
|
||||
$projects = $this->projectRepository->all();
|
||||
|
||||
return view('dashboard.home', compact('categories', 'projects'));
|
||||
return inertia('Dashboard/Index', compact('categories', 'projects'));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user