Development

Any Random Saturday Using Faker

Here’s a quick one, folks. I’m using Faker in Laravel factories to generate realistic data. I have a “week end date” field in one of my models that must always be a Saturday. Here’s how I generate a unique random Saturday:

 

Leave a Reply

Your email address will not be published.