David Carrdcblog.dev·Feb 8, 2018Laravel set default value for creating model instancesOften when creating records with the ORM you'll set the same keys every time, in this cases you can take advantage of the creating event. For example, imagine you have a Post model and where you store the logged in user id using the auth helper like...250 readsAdd a thoughtful commentNo comments yetBe the first to start the conversation.