Update "resolveRouteBinding" method signature
This commit is contained in:
parent
5a29d0aafc
commit
a06408cb2c
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ abstract class Model extends Eloquent
|
||||||
|
|
||||||
protected $perPage = 10;
|
protected $perPage = 10;
|
||||||
|
|
||||||
public function resolveRouteBinding($value)
|
public function resolveRouteBinding($value, $field = null)
|
||||||
{
|
{
|
||||||
return in_array(SoftDeletes::class, class_uses($this))
|
return in_array(SoftDeletes::class, class_uses($this))
|
||||||
? $this->where($this->getRouteKeyName(), $value)->withTrashed()->first()
|
? $this->where($this->getRouteKeyName(), $value)->withTrashed()->first()
|
||||||
|
|
Loading…
Add table
Reference in a new issue