hasMany('App\Business'); } public function category() { return $this->belongsTo('App\Category'); } public function setDetailsAttribute($value) { $this->attributes['details'] = json_encode($value, JSON_UNESCAPED_UNICODE); } public function getDetailsAttribute() { return json_decode($this->attributes['details']); } protected function clearCacheItems(){ Cache::forget('business_title'); } }