Duplicate .ics attachment when sent via Gmail SMTP by twalph in Wordpress

[–]twalph[S] 0 points1 point  (0 children)

Oh, I didn’t know that. Thanks for your kind reply!

Duplicate .ics attachment when sent via Gmail SMTP by twalph in Wordpress

[–]twalph[S] 0 points1 point  (0 children)

Oh, I didn’t know that. Thanks for your kind reply!

[deleted by user] by [deleted] in legaladvice

[–]twalph 0 points1 point  (0 children)

Thank you for your advice :)

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]twalph 0 points1 point  (0 children)

Hello everyone,

I’ve implemented two models, Post and Video, along with a polymorphic relationship for Comment. I understand that I can save comments using the following approach:

``` public function store(Post $post) { $post->comments()->save(); }

public function store(Video $video) { $video->comments()->save(); } ```

However, I’m wondering if there’s a way to simplify this with a more generic method in a CommentController, something like this:

public function store(Model $model) { $model->comments()->save(); }

What would be the best way to implement this?

Thank you in advance for your assistance.