79136255

Date: 2024-10-29 07:59:44
Score: 1
Natty:
Report link

Faker is using PHP's DateTime class and doesn't use Carbon (which extends DateTime) in any way.

As the model factory is only used in the test suites, you can add a parameter to withApprovedPermit() where you can provide a DateTime object.

Or you can set the Date of the objects manually after creation (provided you have the required setters)

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ikyuchukov