同じオカズでチェックインする際にセンシティブフラグを継承する

This commit is contained in:
shibafu committed 2019-09-08 16:32:37 +09:00
1 parent 2b98267fa8
commit 22150d0e7a
4 files changed
+17 -4

No files matched your search

+13
View File
@@ -79,4 +79,17 @@ class Ejaculation extends Model
->addSelect(DB::raw('0 as is_liked'));
}
}
/**
* このチェックインと同じ情報を流用してチェックインするためのURLを生成
* @return string
*/
public function makeCheckinURL(): string
{
return route('checkin', [
'link' => $this->link,
'tags' => $this->textTags(),
'is_too_sensitive' => $this->is_too_sensitive,
]);
}
}