Commit be264ab1 authored by Tobias Orterer's avatar Tobias Orterer

added break function to closing structure

parent ddee5b71
......@@ -273,7 +273,7 @@ class Blade {
*/
protected static function compile_structure_closings($value)
{
$pattern = '/@(endif|endforeach|endfor|endwhile)/';
$pattern = '/@(endif|endforeach|endfor|endwhile|break)/';
return preg_replace($pattern, '<?php $1; ?>', $value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment