Use $this->userdata->id variable in place of Auth::(id) in controllers

This commit is contained in:
DariusIII
2018-09-24 11:28:49 +02:00
parent b7fef38afd
commit 23ab8f0334
11 changed files with 70 additions and 43 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ class ProfileController extends BasePageController
$action = $request->input('action') ?? 'view';
$userid = Auth::id();
$userid = $this->userdata->id;
$data = User::find($userid);
if (! $data) {
$this->show404('No such user!');