public function showMatch($id){
$bat_perfo = Cache::remember('bat_1_'.$id, 2, function(){
return Bat::whereRaw('match_id = ? AND inning = 1', array($id))->get();
});
return 0;
}
I am getting the error "Undefined variable: id" on line 3
how do i solve this