Posts by Daniel Narciso Lima • 21 points
2 posts
-
1
votes1
answer1484
viewsA: How to calculate the difference in time between two PHP dates
$start = new \DateTime( '2017-01-9 10:00:00' ); $end = new \DateTime( '2018-02-10 11:39:37' ); $interval = $start->diff( $end ); echo implode(",", [ $interval->y . " anos", $interval->m . "…
phpanswered Daniel Narciso Lima 21 -
1
votes1
answer905
viewsA: Registration of users with CPF or CNPJ Laravel 5.5
Take a look at the documentation: https://laravel.com/docs/5.5/validation required_with:foo,,... The field under validation must be present and not Empty only if any of the other specified Fields…