bug fixes and new additions
This commit is contained in:
27
app/Imports/SenderidImport.php
Normal file
27
app/Imports/SenderidImport.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Maatwebsite\Excel\Concerns\ToCollection;
|
||||
use Maatwebsite\Excel\Concerns\WithHeadingRow;
|
||||
|
||||
class Senderidimport implements ToCollection, WithHeadingRow
|
||||
{
|
||||
/**
|
||||
* @param Collection $collection
|
||||
*/
|
||||
public function collection(Collection $collection)
|
||||
{
|
||||
foreach ($collection as $row) {
|
||||
dd($row);
|
||||
return [
|
||||
"senderid" => $row['senderid'],
|
||||
"direct_mno" => $row['direct_mno'],
|
||||
"mno_name" => $row['mno_name'],
|
||||
"status" => $row['status'],
|
||||
"remarks" => $row['remarks']
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user