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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -