Describe the bug
production.ERROR: foreach() argument must be of type array|object, null given {"userId":1,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at ...\app\Http\Controllers\Admin\SubfleetController.php:530)
[stacktrace]
Version
7.0.0-dev.g583cdea1dd+241013.583cde
To Reproduce
Steps to reproduce the behavior:
Create a new Subfleet
Click on 'Save'
Additional context
During the first POST there is no Rank associated to the new subfleet, they will (eventually) be added in a second time.
I imagine something like this is missing:
Describe the bug production.ERROR: foreach() argument must be of type array|object, null given {"userId":1,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at ...\app\Http\Controllers\Admin\SubfleetController.php:530) [stacktrace]
Version 7.0.0-dev.g583cdea1dd+241013.583cde
To Reproduce Steps to reproduce the behavior:
Additional context During the first POST there is no Rank associated to the new subfleet, they will (eventually) be added in a second time. I imagine something like this is missing:
(Tested that on my side, it makes the job...)
Laravel Log.txt