setEchoFormat() публичный статический Метод

Set the echo format to be used by the compiler.
public static setEchoFormat ( string $format ) : void
$format string
Результат void
Пример #1
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     \Blade::setContentTags('{{{', '}}}');
     \Blade::setEscapedContentTags('{{', '}}');
     \Blade::setEchoFormat('nl2br(e(%s))');
     \Form::component('checklist', 'components.form.checklist', ['name', 'options']);
 }
Пример #2
0
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     /** Blade **/
     // Keep line break by default for texts
     \Blade::setEchoFormat('nl2br(e(%s))');
 }