mercredi 20 novembre 2019

Column not found: 1054 Unknown column 'orders.deleted_at' in 'where clause'

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