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()
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community