Extend maatwebsite package method in laravel -
i'm using maatwebsite package data import, want extend setitem()
method of cellcollection
class of package. don't know how it.
till i've tried is:
created serviceprovider importserviceprovider in service folder inside app.
in importserviceprovider's register()
method defined function
public function setitems($items) { foreach ($items $name => $value) { $value = !empty($value) || is_numeric($value) ? $value $config=config::get('excel.import.empty_cell'); if ($name) { $this->put($name, $value); } else { $this->push($value); } } }
but not succeed.
Comments
Post a Comment