activitylog.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. return [
  3. /*
  4. * If set to false, no activities will be saved to the database.
  5. */
  6. 'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
  7. /*
  8. * When the clean-command is executed, all recording activities older than
  9. * the number of days specified here will be deleted.
  10. */
  11. 'delete_records_older_than_days' => 365,
  12. /*
  13. * If no log name is passed to the activity() helper
  14. * we use this default log name.
  15. */
  16. 'default_log_name' => 'default',
  17. /*
  18. * You can specify an auth driver here that gets user models.
  19. * If this is null we'll use the default Laravel auth driver.
  20. */
  21. 'default_auth_driver' => null,
  22. /*
  23. * If set to true, the subject returns soft deleted models.
  24. */
  25. 'subject_returns_soft_deleted_models' => false,
  26. /*
  27. * This model will be used to log activity.
  28. * It should be implements the Spatie\Activitylog\Contracts\Activity interface
  29. * and extend Illuminate\Database\Eloquent\Model.
  30. */
  31. 'activity_model' => \Spatie\Activitylog\Models\Activity::class,
  32. /*
  33. * This is the name of the table that will be created by the migration and
  34. * used by the Activity model shipped with this package.
  35. */
  36. 'table_name' => 'activity_log',
  37. /*
  38. * This is the database connection that will be used by the migration and
  39. * the Activity model shipped with this package. In case it's not set
  40. * Laravel database.default will be used instead.
  41. */
  42. 'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'),
  43. ];