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