ExpStoreAgent.php 392 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class ExpStoreAgent extends Model
  5. {
  6. protected $table='experience_store_agent';
  7. protected $guarded=[];
  8. public function user()
  9. {
  10. return $this->belongsTo('App\Models\User','user_id');
  11. }
  12. public function store()
  13. {
  14. return $this->belongsTo('App\Models\Store','store_id');
  15. }
  16. }