Commit 1f9f064b authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #831 from jasonlewis/feature/blade-break

Added an @break to blade to break out of loops.
parents 749a91f9 b6cc836b
......@@ -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