💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
当使用 `database session` 驱动时,你必需建置一张保存 session 的数据表。下方例子使用 `Schema` 来建表: ~~~ Schema::create('sessions', function($table) { $table->string('id')->unique(); $table->text('payload'); $table->integer('last_activity'); }); ~~~ 当然你也可以使用 Artisan 命令 `session:table` 来建 migration 表: ~~~ php artisan session:table composer dump-autoload php artisan migrate ~~~