Changing to Eloquent  model

from raw to Eloquent