Skip to content

Commit dfd4ad0

Browse files
committed
Update DbBladeCompiler.php
Disable compile cache if application in debug mode
1 parent d8d2f0d commit dfd4ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Flynsarmy/DbBladeCompiler/Compilers/DbBladeCompiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function compile($path)
2323
// Compile to PHP
2424
$contents = $this->compileString($string);
2525

26-
if ( ! is_null($this->cachePath))
26+
if ( ! is_null($this->cachePath) || !Config::get('app.debug'))
2727
{
2828
$this->files->put($this->getCompiledPath($path), $contents);
2929
}

0 commit comments

Comments
 (0)