contract template obligation modal UI

This commit is contained in:
glovetleong
2021-07-10 16:27:24 +08:00
parent 85a042b18a
commit 18e4e8c669
23 changed files with 1283 additions and 29 deletions
+8
View File
@@ -159,6 +159,14 @@ class EntityModule extends BaseController
return response()->json($data);
}
public static function validCheck(Request $request, $hash_id = '', $method = 'POST')
{
$id = $hash_id ? Hasher::decode('entities', $hash_id) : '';
$validation = EntityModule::validation($request, $id, $method);
if (!$validation->status) {
return response()->json($validation, 422);
}
}
private static function validation(Request $request, $id = '', $method = 'POST')
{