📅  最后修改于: 2022-03-11 14:53:53.101000             🧑  作者: Mango
use Illuminate\Support\Str;
$padded = Str::of('James')->padRight(10, '-');
// 'James-----'
$padded = Str::of('James')->padRight(10);
// 'James '