In my table i don't have deleted_at column.
But in laravel model in return deleted_at is null in where condition.
Below is my code
public function load($id) {
return $this
->select(sprintf('%s.*', $this->getTable()))
->where(sprintf('%s.id', $this->getTable(), $this->getKeyName()), '=', $id)
->get();
}
can someone helps me? How to fix this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire