Laravel Excel ExcelFile injections -


i've read tutorial maatwebsite. according tutorial, using excelfile class.

here link

but confusing part is, never wrote file name nor location of file. please guide me.

thanks

edit: meant code:

class userlistimport extends \maatwebsite\excel\files\excelfile {      public function getfile()     {         return storage_path('exports') . '/file.csv';     }      public function getfilters()     {         return [             'chunk'         ];     }  } 

where put it?


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -