Files
oficial/aldarien/view/app/Service/View.php
2023-02-10 15:12:30 +00:00

28 lines
479 B
PHP

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