Create mutatorss for the created_at and updated_at attributes in the Base model so that they will be converted from local time to UTC. refactored Post and User model to extend from BaseModel which extends from Eloquent