使用 Cachable Trait

This commit is contained in:
iVampireSP.com 2023-02-22 23:39:26 +08:00
parent 701d94b5d8
commit 28b6a9dd50
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -2,11 +2,14 @@
namespace App\Models;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Maintenance extends Model
{
use Cachable;
public $timestamps = false;
protected $fillable = [