Move Authlog to Laravel (#10559)

* Move Authlog to Laravel

* Update authlog.blade.php
This commit is contained in:
Jellyfrog
2019-09-05 04:12:48 +02:00
committed by Tony Murray
parent ac359bb377
commit e4314922c1
5 changed files with 97 additions and 42 deletions

View File

@@ -27,6 +27,7 @@ namespace App\Http\Controllers;
use App\Http\Requests\StoreUserRequest;
use App\Http\Requests\UpdateUserRequest;
use App\Models\AuthLog;
use App\Models\Dashboard;
use App\Models\User;
use App\Models\UserPref;
@@ -212,4 +213,13 @@ class UserController extends Controller
return false;
}
public function authlog()
{
$this->authorize('manage', User::class);
return view('user.authlog', [
'authlog' => AuthLog::orderBy('datetime', 'DESC')->get(),
]);
}
}