Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a06408cb
authored
Jul 29, 2020
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update "resolveRouteBinding" method signature
1 parent
5a29d0aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Model.php
app/Model.php
View file @
a06408c
...
@@ -11,7 +11,7 @@ abstract class Model extends Eloquent
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment