Commit a06408cb by Jonathan Reinink

Update "resolveRouteBinding" method signature

1 parent 5a29d0aa
Showing with 1 additions and 1 deletions
......@@ -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()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!