DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel route model binding
Route
::
get
(
'posts/{post:slug}'
,
function
(
Post
$post
)
{
return
view
(
'post'
,
[
'post'
=>
$post
]
)
;
}
)
;
Source by laracasts.com #
PREVIOUS
NEXT
Tagged:
#laravel
#route
#model
#binding
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit