DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
how delete multiple row from relation in laravel
AppPost
;
$post
=
Post
::
find
(
$id
)
;
Comment
::
where
(
'post_id'
,
$post
)
->
delete
(
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#delete
#multiple
#row
#relation
#laravel
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit