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

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

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,
]);
}
}