middleware

This commit is contained in:
2019-09-30 01:18:26 -05:00
parent cb51be5f72
commit 155f1d761e
5 changed files with 6 additions and 12 deletions

View File

@@ -52,6 +52,8 @@ class DashboardController extends Controller
}
public function profile() {
return redirect('/');
$user = User::where(['character_id' => $this->user()->getId()])->first();
return view('dashboard.profile')->with('user', $user);
}
}