📅  最后修改于: 2022-03-11 14:53:58.105000             🧑  作者: Mango
#at AppServiceProvider
Blade::directive('trim', function ($string) {
$string = urldecode($string);
$string = trim($string);
return "";
});
#And use on Blade template
@trim('Hello world !')