install horizon

This commit is contained in:
2025-08-19 09:27:09 +03:30
parent c2be14a183
commit 030352d52a
11 changed files with 395 additions and 51 deletions

View File

@@ -23,6 +23,7 @@ use Illuminate\Support\Facades\DB;
class GeneralManagerController extends Controller
{
use ApiResponse;
public function index(Request $request): JsonResponse
{
$query = Harim::query()
@@ -58,6 +59,7 @@ class GeneralManagerController extends Controller
'state_name' => HarimStates::name($state),
]);
});
return $this->successResponse();
}
@@ -192,11 +194,12 @@ class GeneralManagerController extends Controller
'state_name' => HarimStates::name($state),
]);
});
return $this->successResponse();
}
public function show(ShowRequest $request, Harim $harim): JsonResponse
{
return $this->successResponse($harim->load('histories'));
}
}