Answers for "how to substr string in blade laravel"

PHP
0

php laravel string substring

use Illuminate\Support\Str;

$padded = Str::of('James')->padRight(10, '-');

// 'James-----'

$padded = Str::of('James')->padRight(10);

// 'James     '
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language