Laravel How to

Laravel : Best Way to setting created_by user’s ID Eloquent

When creating a new record, where the best way we should be setting the created_by user’s ID? Not only created_by, sometimes we need put uuid when inserting and set updated_by when update the row.. so what the best practice to do that ?