AttributeTranslation.php 258 B

123456789101112131415
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class AttributeTranslation extends Model
  5. {
  6. protected $fillable = ['name', 'lang', 'attribute_id'];
  7. public function attribute(){
  8. return $this->belongsTo(Attribute::class);
  9. }
  10. }