Skip to content

Commit 7e80178

Browse files
Merge pull request #25 from paulredmond/paulredmond-patch-1
Readme Code Example Formatting
2 parents 74ae3c8 + 8d5c8cb commit 7e80178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ class Post extends Model
5050

5151
protected $cascadeDeletes = ['comments'];
5252

53-
protected $dates = ['deleted_at'];
53+
protected $dates = ['deleted_at'];
5454

5555
public function comments()
5656
{
5757
return $this->hasMany(Comment::class);
5858
}
59-
}
59+
}
6060
```
6161

6262
Now you can delete an `App\Post` record, and any associated `App\Comment` records will be deleted. If the `App\Comment` record implements the `CascadeSoftDeletes` trait as well, it's children will also be deleted and so on.

0 commit comments

Comments
 (0)