feat: add app and database modules

This commit is contained in:
2026-05-21 16:05:11 +07:00
parent 37b7e783f5
commit fad70d096b
212 changed files with 23901 additions and 0 deletions
@@ -0,0 +1,46 @@
<?php
/**
* ============================================================
*
* @project biiproject
*
* @author Andika Debi Putra
*
* @email andikadebiputra@gmail.com
*
* @website https://biiproject.com
*
* @copyright Copyright (c) 2026 Andika Debi Putra
* @license Proprietary - All Rights Reserved
*
* @version 1.0.0
*
* @created 2026-05-01
* ============================================================
*/
namespace App\Http\Controllers\System;
use App\Http\Controllers\Controller;
use App\Services\System\GlobalSearchService;
use Illuminate\Http\Request;
class GlobalSearchController extends Controller
{
public function __construct(
protected GlobalSearchService $searchService
) {}
/**
* Perform global search.
*/
public function __invoke(Request $request)
{
$query = $request->get('q', '');
$results = $this->searchService->search($query);
return response()->json($results);
}
}