예제 #1
0
 public function showBullets($id)
 {
     return view('shoots.index', ['shoots' => Shoot::where('bullet_id', $id)->get()]);
 }
예제 #2
0
파일: Firearm.php 프로젝트: elconejito/bang
 public function totalRoundsFired()
 {
     return Shoot::where('firearm_id', $this->id)->sum('rounds');
 }