laravel description substring

43

laravel slug -

php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"

php laravel string substring -

use Illuminate\Support\Str;

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

// 'James-----'

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

// 'James     '

Comments

Submit
0 Comments