Is there a way to substitute dates (date1-date2) in laravel? from db [closed]

Is there a way to substitute dates from database in laravel?
For example i have 2 columns named: begin_date(25.04.2023), end_date(26.04.2023). is there way to substitute end_date to begin_date and the result to be 26-25 = 1 day ?