Str::words($post->body,10); //Use along with complete namespace, like this: IlluminateSupportStr::words($post->body, 10); IlluminateSupportStr::words($post->body, 10,'...');