W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
當使用 database
緩存驅動時,你需要配置一個表來存放緩存數(shù)據(jù)。下面是構建緩存數(shù)據(jù)表結構的 Schema
聲明示例:
Schema::create('cache', function ($table) {
$table->string('key')->unique();
$table->text('value');
$table->integer('expiration');
});
提示:你也可以使用 Artisan 命令
php artisan cache:table
來生成合適的遷移。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: