Save Previous input calculation logic to the database.
Create a migration with the following:
TABLENAME: courior_cost_calculation_history
int
user_id: foreign key int
cost_per_mile: decimal
no_of_drop_off_locations: int
extra_person_count: int
extra_person_price_overide :decimal
total_distance
total_price
extra_person_price
calculation_created_at
TABLENAME: distance_between_locations
id: int
distance: decimal
courier_cost_calculation_history_id:foreign key int
Add model files for the following:
- courior_cost_calculation_history
- distance_between_locations
Add logic to the couriourCalculationController
Save Previous input calculation logic to the database.
Create a migration with the following:
Add model files for the following:
Add logic to the couriourCalculationController