use IlluminateSupportStr; $padded = Str::of('James')->padRight(10, '-'); // 'James-----' $padded = Str::of('James')->padRight(10); // 'James '
Use carbon -> <p>{{CarbonCarbon::parse($yourVariable['created_at'])->format('Y-M-d')}}</p>