diff --git a/app/Model.php b/app/Model.php index d0bebf1..7b17500 100644 --- a/app/Model.php +++ b/app/Model.php @@ -11,7 +11,7 @@ abstract class Model extends Eloquent protected $perPage = 10; - public function resolveRouteBinding($value) + public function resolveRouteBinding($value, $field = null) { return in_array(SoftDeletes::class, class_uses($this)) ? $this->where($this->getRouteKeyName(), $value)->withTrashed()->first()