Exemplo n.º 1
0
 /**
  * @param       $view
  * @param Blade $compiler
  * @return mixed
  */
 public static function compile_datetime($view, \Blade $compiler)
 {
     $pattern = $compiler->createOpenMatcher('datetime');
     return preg_replace($pattern, '$1<?php echo $2->format(\'m/d/Y H:i\')); ?>', $view);
 }