Set the echo format to be used by the compiler.
public static setEchoFormat ( string $format ) : void | ||
$format | string | |
return | void |
/** * 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']); }
/** * Bootstrap any application services. * * @return void */ public function boot() { /** Blade **/ // Keep line break by default for texts \Blade::setEchoFormat('nl2br(e(%s))'); }