SellerSpreadPackagePayment.php 396 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class SellerSpreadPackagePayment extends Model
  5. {
  6. public function user(){
  7. return $this->belongsTo(User::class);
  8. }
  9. public function seller_spread_package(){
  10. return $this->belongsTo(SellerSpreadPackage::class);
  11. }
  12. public function products() {
  13. return $this->hasMany(Product::class);
  14. }
  15. }