Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BatchUpdateItemsController extends Controller
- {
- public function update(Request $request)
- {
- $file = $request->file('file');
- $batchImport = new BatchUpdateItems($file);
- $status = $batchImport->update();
- public function update()
- {
- $this->data = Excel::load($this->data->getRealPath())->get()->toArray();
- if (!Storage::exists('batchImportTestAllLocalized.xlsx')) {
- $this->fail('batchImportTestAllLocalized.xlsx cannot be found');
- }
- $data = Excel::load('batchImportTestAllLocalized.xlsx', function($reader) {})->get();
Add Comment
Please, Sign In to add comment