Laravel 8 append {#collection-method}
append
方法为字符串附加上指定的值:
use Illuminate\Support\Str;
$string = Str::of('Taylor')->append(' Otwell');
// 'Taylor Otwell'
append
方法为字符串附加上指定的值:
use Illuminate\Support\Str;
$string = Str::of('Taylor')->append(' Otwell');
// 'Taylor Otwell'