有人可以向我解释会话驱动程序吗?对“laravel 会话驱动程序”的搜索没有发现任何关于不同类型的信息。我之所以问,是因为以下教程建议对 REST API 使用数组驱动程序,但我不知道为什么。教程:https ://speakerdeck.com/akuzemchak/simple-api-development-with-laravel?slide=62
这是 app/config/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',