@@ -6,5 +6,5 @@ |
||
| 6 | 6 | |
| 7 | 7 | class TermRelationship extends Model |
| 8 | 8 | { |
| 9 | - protected $fillable = ['model_type', 'model_id', 'term_taxonomy_id', 'term_order']; |
|
| 9 | + protected $fillable = ['model_type', 'model_id', 'term_taxonomy_id', 'term_order']; |
|
| 10 | 10 | } |
@@ -9,10 +9,10 @@ |
||
| 9 | 9 | protected $fillable = ['term_id', 'taxonomy', 'description', 'parent', 'count']; |
| 10 | 10 | |
| 11 | 11 | public function term() { |
| 12 | - return $this->hasOne('App\Models\Term', 'id', 'term_id'); |
|
| 12 | + return $this->hasOne('App\Models\Term', 'id', 'term_id'); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | public function childs() { |
| 16 | - return $this->hasMany('App\Models\TermTaxonomy', 'parent', 'term_id'); |
|
| 16 | + return $this->hasMany('App\Models\TermTaxonomy', 'parent', 'term_id'); |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | protected $casts = [ |
| 17 | 17 | 'custom_properties' => 'array', // Will convarted to (Array) |
| 18 | - ]; |
|
| 18 | + ]; |
|
| 19 | 19 | public function toResponse($request) |
| 20 | 20 | { |
| 21 | 21 | $downloadHeaders = [ |