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?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/347f1Wt
via IFTTT
Aucun commentaire:
Enregistrer un commentaire