A service provider driver which properly locks the file session driver for Laravel.
This issue was resolved with a pull request that was never integrated in the Laravel core, because the Laravel team wasn't able to reproduce it.
https://github.com/laravel/framework/pull/6848
Some other topics regarding this issue.
https://github.com/laravel/framework/issues/7549
https://github.com/laravel/framework/issues/8172
Add to composer.json.
"cedricve/lockfile": "1.0.0",
Load Service Provider in app/config/app.config, immediately after SessionServiceProvider.
'Illuminate\Session\SessionServiceProvider',
'Cedricve\Lockfile\LockfileServiceProvider',
Load the lockfile session provider in app/config/session.php.
'driver' => 'lockfile',