Closed BergBenji closed 3 months ago
Ok, i found the reason after rebuild some things.
In the share method of "HandlerInertiaRequest" i had
$returnarray['customerid'] = fn() => $request->route('customerid');
And if i call the user profile the customerid is not given but the share method will replace the prop with null.
Short description: I have the following routes:
If i call the modal from the Overview everything works. But if i call the same Userprofile Modal from a Customerdashboard '/{customerid}/dashboard' i get the error
Uncaught (in promise) Error: Ziggy error: 'customerid' parameter is required for route 'dashboard'.
The Laravel Method to render the Modal
Any idea how to fix this? Dont have any ideas anymore.