mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-14 13:48:26 +00:00
[Fixes #21] Change the majority of View::share to View::make()->with()
This commit is contained in:
@@ -22,10 +22,10 @@ class ProfileController extends BaseController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
View::share('title', 'Profile');
|
||||
View::share('subTitle', Auth::user()->email);
|
||||
View::share('mainTitleIcon', 'fa-user');
|
||||
return View::make('profile.index');
|
||||
return View::make('profile.index')
|
||||
->with('title', 'Profile')
|
||||
->with('subTitle', Auth::user()->email)
|
||||
->with('mainTitleIcon', 'fa-user');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,10 +33,10 @@ class ProfileController extends BaseController
|
||||
*/
|
||||
public function changePassword()
|
||||
{
|
||||
View::share('title', Auth::user()->email);
|
||||
View::share('subTitle', 'Change your password');
|
||||
View::share('mainTitleIcon', 'fa-user');
|
||||
return View::make('profile.change-password');
|
||||
return View::make('profile.change-password')
|
||||
->with('title', Auth::user()->email)
|
||||
->with('subTitle', 'Change your password')
|
||||
->with('mainTitleIcon', 'fa-user');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user