1234567891011121314151617181920 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class ScanStorageLog extends Model{
- protected $table='scan_storage_log';
- protected $guarded=[];
- public function user()
- {
- return $this->hasOne(User::class,'id','user_id');
- }
- public function accept()
- {
- return $this->hasOne(User::class,'id','accept_id');
- }
- }
|