model caching

This commit is contained in:
denisdulici
2020-01-18 13:00:15 +03:00
parent 687d6354fe
commit dbe2df3cb5
4 changed files with 324 additions and 105 deletions

View File

@ -5,12 +5,13 @@ namespace App\Abstracts;
use App\Scopes\Company;
use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\SoftDeletes;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Kyslik\ColumnSortable\Sortable;
use Lorisleiva\LaravelSearchString\Concerns\SearchString;
abstract class Model extends Eloquent
{
use SearchString, SoftDeletes, Sortable;
use Cachable, SearchString, SoftDeletes, Sortable;
protected $dates = ['deleted_at'];