You need not to use mutator to set the
Auth:id() for new model instance. Checkout the Eloquent event to set
user_id during the creation of new model instance.
Post model code sample will
Don't Forget to register the service provider
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us