Skip to content

How to remove spaces from my php

When I run my php code it shows the content perfectly, but there’s a space after start and before stop. How do I remove all spaces? I thought that’s what I was doing with trim? Answer You should trim all the whitespace characters, like this:

Laravel 5.4 required if validation issue

I have 2 fields, accepts_usd and price_usd. For price usd I have a validation rule: And for accepts_usd: When I want to store data if I set accepts_usd to false it still asks for price_usd. whats the issue here? What am I doing wrong? Answer From laravel docs: required_if:anotherfield,value,… The field …