I'm using a LaravelMiddleware, which should check for Access. Therefore, I check for a specific Attributes, which sometimes have different names.
EG:
- $request->key
- $request->moduleKey
Im asking if there is a possiblitiy to check for 2 different attributes specifications?
Like so:
$data = $request->validate([
'key|moduleKey' => ['required', 'numeric'],
]);