This commit is contained in:
Juan Pablo Vial
2023-07-24 20:41:38 -04:00
parent 6ab24c8961
commit be33305cf1
612 changed files with 11436 additions and 107 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace App\Service;
use eftec\bladeone\BladeOne;
class View
{
protected $views;
protected $cache;
protected $blade;
public function __construct(array $variables = [])
{
$this->views = config('locations.views');
$this->cache = config('locations.cache');
$this->blade = new BladeOne($this->views, $this->cache, null, $variables);
}
public function show($template, $vars = null)
{
if ($vars) {
return $this->blade->run($template, $vars);
}
return $this->blade->run($template);
}
}
?>