Support the ongoing development of Laravel.io →
Session Packages
Last updated 2 years ago.
0

http://forumsarchive.laravel.io/viewtopic.php?pid=56623

class MySessionHandlerServiceProvider extends \Illuminate\Support\ServiceProvider {
// Make shure that this service provider always boots
    protected $defer = false;


    public function register()
    {
        /*Session::extend('mysessionhandler', function($app)
        {
            return new MySessionHandler;
        });*/
        Session::extend('mysessionhandler', function($app)
        {
            return new MySessionHandler;
        });
    }
}

There are mistakes Symfony \ Component \ Debug \ Exception \ FatalErrorException Call to undefined method Illuminate\Support\Facades\Session::extend()

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

qq277049 qq277049 Joined 12 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.