How to limit the length of a string in Laravel
4 years ago
There are many different ways to limit the length of a string. For example, you could use CSS, JavaScript, or do it through PHP.
Laravel also provides a nice helper to make this easy! We will be using the Str
class from Illuminate\Support\Str
namespace.
Link: