Search
 
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
Name
9+8 =