Support the ongoing development of Laravel.io →
Input Eloquent Validation
Last updated 2 years 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!

Eventy

Your banner here too?

omaromp2 omaromp2 Joined 21 Jul 2016

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.