update all controller frontend for kadar anggota koperasi
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Anggota;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
|
||||
class AnggotaImport implements ToModel
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
public function model(array $row)
|
||||
{
|
||||
return new Anggota([
|
||||
//
|
||||
'noic' => $row['noic'],
|
||||
'nama' => $row['nama'],
|
||||
'status' => $row['status'] ?? 'aktif',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user