Update database/eloquent/model.php

Reconstruction and deleting excess code. Functions : has_one, has_many