Commit b6cc836b authored by Jason Lewis's avatar Jason Lewis

Added an @break to blade to break out of loops.

Signed-off-by: 's avatarJason Lewis <jason.lewis1991@gmail.com>
parent 681f80ea
......@@ -278,7 +278,7 @@ class Blade {
*/
protected static function compile_structure_closings($value)
{
$pattern = '/(\s*)@(endif|endforeach|endfor|endwhile)(\s*)/';
$pattern = '/(\s*)@(endif|endforeach|endfor|endwhile|break)(\s*)/';
return preg_replace($pattern, '$1<?php $2; ?>$3', $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