Upgrade to php 8
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace App\Service;
|
||||
|
||||
use Philo\Blade\Blade;
|
||||
use eftec\bladeone\BladeOne;
|
||||
|
||||
class View
|
||||
{
|
||||
@ -14,14 +14,14 @@ class View
|
||||
$this->views = config('locations.views');
|
||||
$this->cache = config('locations.cache');
|
||||
|
||||
$this->blade = new Blade($this->views, $this->cache);
|
||||
$this->blade = new BladeOne($this->views, $this->cache);
|
||||
}
|
||||
public function show($template, $vars = null)
|
||||
{
|
||||
if ($vars) {
|
||||
return $this->blade->view()->make($template, $vars)->render();
|
||||
return $this->blade->run($template, $vars);
|
||||
}
|
||||
return $this->blade->view()->make($template)->render();
|
||||
return $this->blade->run($template);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"description": "View module for my apps",
|
||||
"type": "library",
|
||||
"require": {
|
||||
"philo/laravel-blade": "*",
|
||||
"eftec/bladeone": "*",
|
||||
"aldarien/contract": "*",
|
||||
"aldarien/config": "*"
|
||||
},
|
||||
|
Reference in New Issue
Block a user