Question : laravel Str::random
Answered by : modern-marten-abwi0r4tcbi9
use Illuminate\Support\Str;
$random = Str::random(40);
Source : https://laravel.com/docs/7.x/helpers#method-str-random | Last Update : Sat, 13 Jun 20
Question : {{Str::limit laravel
Answered by : samer-saeid
{{Str::limit($category->name, 20)}}
if to end
{{Str::limit($category->name, 20, $end='.......')}}
or
{{\Illuminate\Support\Str::limit($category->name, 20)}}
Source : | Last Update : Sat, 12 Dec 20