5
有人可以向我解释会话驱动程序吗?搜索“laravel会话驱动程序”没有透露任何关于不同类型的内容。我问,因为下面的教程建议使用REST API的数组驱动程序,但我不知道为什么。教程:https://speakerdeck.com/akuzemchak/simple-api-development-with-laravel?slide=62Laravel会话驱动程序?
下面是从应用程序中的相关章节/配置/ session.php文件
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "native", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => 'native',
谢谢!令人失望的是,这不是Laravel文档中的任何地方。 –
如何在laravel中使用redis/memcached驱动程序?我知道有一个驱动程序,我怎样才能使用那个驱动程序? – Pars
只需在配置文件('app/config/session.php')中更改驱动程序? – radmen