Support the ongoing development of Laravel.io →
Input Eloquent Validation
Last updated 1 month ago.
0

Found it! This is what I ended up doing.

$results = Excel::load($filename)->get(); 
$var = 0; 
foreach($results as $rows)
{
  $rowYouNeed = $row->field; 
  if($rowYouNeed != null){
   $var = $row->field; 
}else{
  $rowYouNeed = $var; 
}
}

Hope this saves someone a headache.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

omaromp2 omaromp2 omaromp2 Joined 21 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.