ImportLog.php 497 B

12345678910111213141516171819202122232425262728
  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. 'imported_at',
  15. ];
  16. protected $casts = [
  17. 'imported_at' => 'datetime',
  18. ];
  19. public function user(): BelongsTo
  20. {
  21. return $this->belongsTo(User::class);
  22. }
  23. }