This code fixes #349

This commit is contained in:
James Cole
2016-10-20 19:10:43 +02:00
parent b9308cd74a
commit d92768ecbf
9 changed files with 248 additions and 48 deletions

View File

@@ -35,6 +35,9 @@ class ProfileController extends Controller
public function __construct()
{
parent::__construct();
View::share('title', trans('firefly.profile'));
View::share('mainTitleIcon', 'fa-user');
}
/**
@@ -63,7 +66,10 @@ class ProfileController extends Controller
*/
public function index()
{
return view('profile.index')->with('title', trans('firefly.profile'))->with('subTitle', auth()->user()->email)->with('mainTitleIcon', 'fa-user');
$subTitle = auth()->user()->email;
$userId = auth()->user()->id;
return view('profile.index', compact('subTitle', 'userId'));
}
/**