How to pass arguments to Laravel factories?
I have a users table and a one-to-zero/one relation with a businesses table (users.user_id => businesses.user_id). On my users table I have a discriminator which tells me if the user is of type business and therefore I need to have details on the businesses table as well. I want to create my Users with my factory which currently is working and then only create business details where the discriminator points to a business account. I have three options in my mind: Create from users factory and then using '->each()' do some checks on the discriminator and create a new business user using a the