Controller Code:
public function claims($id)
{
$claims = Claim::whereBetween('created_at', [
'2016-03-01',
'2016-03-31'
])->get();
return View::make('pdfs.view', $claims);
}
In my view I'm getting a message that $claims is an undefined variable.
I know that with a single array I can simply access the array properties by callig a variable of the same name. i.e. $claims['id] would simply by $id
However I cannot do this with a multidimensional array, as $claims does not exist
Also, I cannot pass the data as an object using ->with('claims' $claims) as I'm generating a PDF and the library does not support that function.
Any ideas how I can access the data?