1 year ago

Calculate Dates in mysql using carbon and laravel

Posted 1 year ago by marvino

Im new, using carbon with laravel, im building a system that will show an employee will be receiving the salary step increase in every three years and adds to their previous step.

Sample scenario.

  • Juan was hired last April 23, 2003 with salary step of 1. *Every three years the salary step should add up 1. *We will compute the current date to Juan date of hired. As expected manually computation the salary step increase of Juan right now should be 6.(Because we add 1 in every three years).

After that in the system i build there is also a summary of employees who should be receiving their salary step increment this year. It is possible to do? anyone can help.

Please sign in or create an account to participate in this conversation.