laravel eloquent model cache

前端 未结 1 1843
余生分开走
余生分开走 2021-01-25 18:50

I am learning laravel eloquent in Laravel 5.6.

I have already used database query builder & cache.

Retrieve & Store for Database

相关标签:
1条回答
  • 2021-01-25 19:34

    There is a built-in method for this:

    App\User::where(['id' => 1])->cache()
    

    I hope this helps, although a year later.

    0 讨论(0)
提交回复
热议问题