MoneyUser.php 277 B

123456789101112131415
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class MoneyUser extends Model{
  5. protected $table='money_user';
  6. public function get_pay(){
  7. return $this->hasManyThrough(UserPay::class,User::class,'mobile','user_id','mobile','id');
  8. }
  9. }