Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
6+5 =