laravel 8 foreach loop php code example
Example 1: foreach loop laravel
foreach($data as $key => $value)
{
dd($value);
}
Example 2: laravel foreach
public function times(){
$times = Times::all();
$bookings = Bookings::all();
return view('/test2')->with('times', $times)->with('bookings', $bookings);
}