fanamurov / larrock-wizard
Import .xlsx price to catalog component for larrockCMS
v1.1.6
2020-05-07 04:17 UTC
Requires
- fanamurov/larrock-catalog: ^1.0
- laracasts/generators: ^1.1
- maatwebsite/excel: ^2.1
Requires (Dev)
- davejamesmiller/laravel-breadcrumbs: 5.*
- doctrine/dbal: ^2.5.2
- fanamurov/larrock-core: ^1.0
- laravel/framework: 5.6.*
- mockery/mockery: ^1.0.0
- nicolaslopezj/searchable: ^1.9
- orchestra/testbench: ~3.5.0|~3.6.0
- phpunit/phpunit: ^6.2|^7.0
- proengsoft/laravel-jsvalidation: ^2.0
- spatie/laravel-medialibrary: ^7.0.0
This package is auto-updated.
Last update: 2024-11-07 13:49:47 UTC
README
Import .xlsx price to catalog component for larrockCMS
Depends:
- fanamurov/larrock-core
- fanamurov/larrock-catalog
- fanamurov/larrock-category
- maatwebsite/excel
- laracasts/generators
INSTALL
- Install larrock-wizard
composer require fanamurov/larrock-wizard
- Install laracasts/generators fork (laravel 5.5 support). Update main composer.js
"repositories": [
{
"type": "git",
"url": "https://github.com/Fanamurov/L5GeneratorsLarrock.git"
}
],
"require": {
"laracasts/generators": "dev-master"
},
- Add service providers (config/app.php)
//http://www.maatwebsite.nl/laravel-excel/docs/import Maatwebsite\Excel\ExcelServiceProvider::class, //https://github.com/laracasts/Laravel-5-Generators-Extended \Laracasts\Generators\GeneratorsServiceProvider::class,
Add alias servise providers
'Excel' => Maatwebsite\Excel\Facades\Excel::class,
- Publish vendor files
$ php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
START
Load .xlsx file, сonfigure import and import http://yousite/admin/wizard
ARTISAN COMMANDS
Start import (clear catalog and import loaded .xlsx)
$ php artisan wizard:import
Clear catalog
$ php artisan wizard:clear
Start import selected sheet
$ php artisan wizard:sheet --sheet={number sheet}
NOTES
- The file for import must be only one
- The file must be in the directory '/resources/wizard'