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.
How can i subtract dates in my database to now ? and how will i solve the problem above. Im being crazy thinking. Every time i tried, i got error. I REALLY NEED HELP HERE.