How to trim input in Laravel
When you want to validate Laravel input, you can do it out of the box using for example Form Request class. Let’s assume you want to allow creating tags. Each created tag should have at least 3 characters. Simple? Well, it looks really easy, but when we look at details, we can find a few … [Read more…]