This usage has been deprecated since PHP 7.4: https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.nested-ternary
Either use:
($gigData->three_packages == 1 ? 'checked' : $gigData->packages_details == null) ? 'checked' : ''
Or:
$gigData->three_packages == 1 ? 'checked' : ($gigData->packages_details == null ? 'checked' : '')
Depending on what you want the logic to be.
joedixon liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community