jenssegers / blade

🔪 A standalone version of Laravel's Blade templating engine for use outside of Laravel.
https://jenssegers.com
825 stars 124 forks source link

A facade root has not been set #36

Open jon-hill-airangel opened 5 years ago

jon-hill-airangel commented 5 years ago

I need to be able to refresh the cache as we are having issues with old content being displayed in the browser after changes have been made and the page has been refreshed. I am aware of the Artisan::call('cache:clear') command. When I run this I get the error 'A facade root has not been set'

<?php

namespace App\Classes;

use Illuminate\Support\Facades\Artisan; use Jenssegers\Blade\Blade as B; // the actual blade templating engine plugin

class Blade { /**

jon-hill-airangel commented 5 years ago

Or is it possible to simply run straight from the template by bypassing the cache altogether?