ImportLog.php 517 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  5. class ImportLog extends Model
  6. {
  7. protected $fillable = [
  8. 'type',
  9. 'user_id',
  10. 'total',
  11. 'created',
  12. 'updated',
  13. 'inactivated',
  14. 'on_leave',
  15. 'imported_at',
  16. ];
  17. protected $casts = [
  18. 'imported_at' => 'datetime',
  19. ];
  20. public function user(): BelongsTo
  21. {
  22. return $this->belongsTo(User::class);
  23. }
  24. }