You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
463 B

2 years ago
  1. <?php
  2. namespace App\Documents;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Jenssegers\Mongodb\Eloquent\Model;
  5. class FingerPrintDocument extends Model
  6. {
  7. use HasFactory, BaseDocument;
  8. protected $connection = 'mongodb';
  9. protected $fillable = ['user_id', 'agent', 'ip', 'os', 'city', 'country', 'token', 'expires_at'];
  10. public function user()
  11. {
  12. return $this->belongsTo(UserDocument::class, 'user_id', '_id');
  13. }
  14. }