This commit is contained in:
Juan Pablo Vial
2023-06-22 23:15:17 -04:00
parent 05e37f19ae
commit b212381bb7
25 changed files with 433 additions and 89 deletions

View File

@ -9,12 +9,12 @@ class View
protected $cache;
protected $blade;
public function __construct()
public function __construct(array $variables = [])
{
$this->views = config('locations.views');
$this->cache = config('locations.cache');
$this->blade = new BladeOne($this->views, $this->cache);
$this->blade = new BladeOne($this->views, $this->cache, null, $variables);
}
public function show($template, $vars = null)
{