Updated integration with eloquent orm