Scan.php 264 B

123456789101112131415
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Scan extends Model{
  5. protected $connection = 'mysql_w';
  6. protected $table='scan';
  7. public function user()
  8. {
  9. return $this->belongsTo(UserW::class,'user_id');
  10. }
  11. }