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