I am using Laravel 5 and have a running mulitple file upload implementation via Dropzone. Now, i like to store a position number for a new file:
$count = SplashImage::count(); $this->position = !$count ? 0 : $count;
This gives me the correct position, when i upload a single file.
But when i upload multiple files i get something like this:
It seems the count query is slower then the forthcoming request.
Has someone an idea how to fix this?