FEATURE #1367: add log of login and logout

This commit is contained in:
Michal Kváček
2016-01-29 00:20:40 +01:00
parent 859d3ce753
commit 5fabc08a99
7 changed files with 172 additions and 3 deletions
@@ -0,0 +1,16 @@
<?php
namespace App\Enumerations;
use App\Models\ActionLogType;
class ActionLogTypesForLogger extends BaseEnumeration
{
protected static function init()
{
$types = ActionLogType::all(['string_id', 'id']);
foreach ($types as $type) {
self::push($type->string_id, $type->id);
}
}
}