David Carrdcblogdev.hashnode.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...287 readsAdd a thoughtful commentNo comments yetBe the first to start the conversation.