ScanStorageLog.php 377 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class ScanStorageLog extends Model{
  5. protected $table='scan_storage_log';
  6. protected $guarded=[];
  7. public function user()
  8. {
  9. return $this->hasOne(User::class,'id','user_id');
  10. }
  11. public function accept()
  12. {
  13. return $this->hasOne(User::class,'id','accept_id');
  14. }
  15. }