Example #1
0
 public function showBullets($id)
 {
     return view('shoots.index', ['shoots' => Shoot::where('bullet_id', $id)->get()]);
 }
Example #2
0
 public function totalRoundsFired()
 {
     return Shoot::where('firearm_id', $this->id)->sum('rounds');
 }