Dependencies

This commit is contained in:
2021-03-25 21:23:29 -03:00
parent 15e1eecc76
commit 5e0e7d1d55
76 changed files with 1687 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace App\Service;
use Philo\Blade\Blade;
class View
{
protected $views;
protected $cache;
protected $blade;
public function __construct()
{
$this->views = config('locations.views');
$this->cache = config('locations.cache');
$this->blade = new Blade($this->views, $this->cache);
}
public function show($template, $vars = null)
{
if ($vars) {
return $this->blade->view()->make($template, $vars)->render();
}
return $this->blade->view()->make($template)->render();
}
}
?>