Update "resolveRouteBinding" method signature

This commit is contained in:
Jonathan Reinink 2020-07-29 10:11:41 -04:00
parent 5a29d0aafc
commit a06408cb2c
1 changed files with 1 additions and 1 deletions

View File

@ -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()