Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel 4 SessionServiceProvider中的getExpireTime()getDriver()_Php_Laravel - Fatal编程技术网

Php Laravel 4 SessionServiceProvider中的getExpireTime()getDriver()

Php Laravel 4 SessionServiceProvider中的getExpireTime()getDriver(),php,laravel,Php,Laravel,Laravel4有一个类SessionServiceProvider。如何在我的应用程序中使用其中的一些方法,例如getExpireTime()、getDriver() 要获得生存期,可以使用MetadataBag:Session::getFacadeRoot()->getMetadataBag()->getLifeTime()

Laravel4有一个类SessionServiceProvider。如何在我的应用程序中使用其中的一些方法,例如getExpireTime()、getDriver()

要获得生存期,可以使用MetadataBag:
Session::getFacadeRoot()->getMetadataBag()->getLifeTime()