增加 管理员缓存

This commit is contained in:
iVampireSP.com 2022-11-21 15:28:50 +08:00
parent 95a189a07c
commit af2b26ee0e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -2,6 +2,7 @@
namespace App\Models;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
@ -27,7 +28,7 @@
*/
class Admin extends Authenticatable
{
use HasFactory;
use HasFactory, Cachable;
protected $table = 'admins';