Laravel - Session - Registering The Driver
Once your driver has been implemented, you are ready to register it with Laravel. To add additional drivers to Laravel's session backend, you may use the extend
method provided by the Session
facade. You should call the extend
method from the boot
method of a service provider. You may do this from the existing App\Providers\AppServiceProvider
or create an entirely new provider:
Once the session driver has been registered, you may use the mongo
driver in your config/session.php
configuration file.