Small code change for controllers.

This commit is contained in:
James Cole
2017-12-16 19:46:36 +01:00
parent 66ee382da0
commit 9086259a65
28 changed files with 54 additions and 54 deletions

View File

@@ -52,8 +52,8 @@ class CurrencyController extends Controller
$this->middleware(
function ($request, $next) {
View::share('title', trans('firefly.currencies'));
View::share('mainTitleIcon', 'fa-usd');
app('view')->share('title', trans('firefly.currencies'));
app('view')->share('mainTitleIcon', 'fa-usd');
$this->repository = app(CurrencyRepositoryInterface::class);
$this->userRepository = app(UserRepositoryInterface::class);