海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
574 B

4 years ago
4 years ago
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. class AgentProductSpec extends Model
  7. {
  8. use HasFactory, SoftDeletes;
  9. protected $guarded = ['id'];
  10. public function __construct(array $attributes = [])
  11. {
  12. parent::__construct($attributes);
  13. $this->timestamps = false;
  14. }
  15. public function agentProduct()
  16. {
  17. return $this->belongsTo(AgentProduct::class);
  18. }
  19. public function productSpec()
  20. {
  21. return $this->belongsTo(ProductSpec::class);
  22. }
  23. }