Answers for "laravel + limit"

PHP
3

{{Str::limit laravel

{{Str::limit($category->name, 20)}}

if to end 
  
{{Str::limit($category->name, 20, $end='.......')}}
             
or
  
{{\Illuminate\Support\Str::limit($category->name, 20)}}
Posted by: Guest on December-05-2020
1

limit laravel

$posts = Post::all()->limit(10)->get();
Posted by: Guest on November-22-2020

Browse Popular Code Answers by Language