Shop.php 432 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Shop extends Model
  5. {
  6. protected $with = [ 'user' ];
  7. public function user() {
  8. return $this->belongsTo(User::class);
  9. }
  10. public function seller_package() {
  11. return $this->belongsTo(SellerPackage::class);
  12. }
  13. public function seller_spread_package() {
  14. return $this->belongsTo(SellerSpreadPackage::class);
  15. }
  16. }