Skip to content

Commit

Permalink
Ajustes namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
darkraul79 committed May 27, 2022
1 parent cb23f65 commit 548347f
Show file tree
Hide file tree
Showing 15 changed files with 691 additions and 679 deletions.
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"workbench.colorCustomizations": {
"editor.selectionHighlightBackground": "#c50042e0",
"editor.wordHighlightStrongBackground": "#c5000056",
"editorLink.activeForeground": "#5086d6",
"editor.foldBackground": "#0d180ea2",
"editorGutter.foldingControlForeground": "#ff9203e0",
"activityBar.background": "#4C2017",
"titleBar.activeBackground": "#6B2D21",
"titleBar.activeForeground": "#FDF9F8"
}
}
28 changes: 14 additions & 14 deletions config/activitylog.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,39 @@

return [

/*
/*
* If set to false, no activities will be saved to the database.
*/
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),

/*
/*
* When the clean-command is executed, all recording activities older than
* the number of days specified here will be deleted.
*/
'delete_records_older_than_days' => 365,
'delete_records_older_than_days' => 365,

/*
/*
* If no log name is passed to the activity() helper
* we use this default log name.
*/
'default_log_name' => 'default',
'default_log_name' => 'default',

/*
/*
* You can specify an auth driver here that gets user models.
* If this is null we'll use the default Laravel auth driver.
*/
'default_auth_driver' => null,
'default_auth_driver' => null,

/*
/*
* If set to true, the subject returns soft deleted models.
*/
'subject_returns_soft_deleted_models' => false,
'subject_returns_soft_deleted_models' => false,

/*
/*
* This model will be used to log activity. The only requirement is that
* it should be or extend the Darkraul79\Activitylog\Models\Activity model.
* it should be or extend the Darkraul79\activityLogCAmpus\Models\Activity model.
*/
'activity_model' => \Darkraul79\Activitylog\Models\Activity::class,
'activity_model' => \Darkraul79\activityLogCAmpus\Models\Activity::class,

'table_name' => 'activities',
'table_name' => 'activities',
];
36 changes: 18 additions & 18 deletions src/ActivityLogStatus.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<?php

namespace Darkraul79\Activitylog;
namespace Darkraul79\activityLogCAmpus;

use Illuminate\Config\Repository;

class ActivityLogStatus
{
protected $enabled = true;
protected $enabled = true;

public function __construct(Repository $config)
{
$this->enabled = $config['activitylog.enabled'];
}
public function __construct(Repository $config)
{
$this->enabled = $config['activitylog.enabled'];
}

public function enable(): bool
{
return $this->enabled = true;
}
public function enable(): bool
{
return $this->enabled = true;
}

public function disable(): bool
{
return $this->enabled = false;
}
public function disable(): bool
{
return $this->enabled = false;
}

public function disabled(): bool
{
return $this->enabled === false;
}
public function disabled(): bool
{
return $this->enabled === false;
}
}
Loading

0 comments on commit 548347f

Please sign in to comment.