the 2 statements are not strictly equivalent. Let's imagine there's always a foo input on the form then isset will always return true (even if the input value is an empty string), therefore the old expression would always return false
on the other hand, the new version checks not only if the input is present but also if it has a non empty value so it will return true if foo is empty and false if it's filled (since the expression uses negation) which is probably more what you want
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community