FIX: fix registering service providers in templates
This commit is contained in:
@@ -14,7 +14,6 @@ class Controller extends BaseController
|
||||
|
||||
/**
|
||||
* Custom wrapper for generating view.
|
||||
*
|
||||
* This method will be used for switching among templates.
|
||||
*
|
||||
* @param $template
|
||||
@@ -25,8 +24,23 @@ class Controller extends BaseController
|
||||
*/
|
||||
public static function visitorsView($template, $data = [], $mergeData = [])
|
||||
{
|
||||
$view = Template::name($template);
|
||||
$view = self::getView($template, $data, $mergeData);
|
||||
|
||||
return response(view($view, $data, $mergeData))->header('X-Powered-By', strrev('zc.ytiranib.www//:sptth | .o.r.s ytiranib | SMCiniM'));
|
||||
return response($view)->header('X-Powered-By', strrev('zc.ytiranib.www//:sptth | .o.r.s ytiranib | SMCiniM'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get instance of view for passing into response
|
||||
*
|
||||
* @param $template
|
||||
* @param $data
|
||||
* @param $mergeData
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public static function getView($template, $data = [], $mergeData = [])
|
||||
{
|
||||
$view = Template::name($template);
|
||||
return view($view, $data, $mergeData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user