❓ Support
B Benjamin Gakami Dec 27, 2024

Installing Waterhole to existing project seems to break custom session driver

I just installed Waterhole and i get the error that my custom session driver is not supported

image.png

When i remove the package, everything works fine.

This is the code i have in boot section of my AppServiceProvider

Session::extend('custom-database', function ($app) {
            $table = $app['config']['session.table'];
            $lifetime = $app['config']['session.lifetime'];
            $connection = $app['db']->connection($app['config']['session.connection']);

            return new CustomDatabaseSessionHandler($connection, $table, $lifetime, $app);
        });

⁨1⁩ ⁨Comment⁩