Dòng lệnh trong S-Cart
(Cập nhật: 2020-10-27 23:00:06)
Những dòng lệnh hữu ích trong S-Cart 4.x:
Để xem thông tin của S-Cart:
Để tạo mới một plugin:
Để tạo file backup dữ liệu (Thư mục chứa file là stogare/backups):
Sau khi set giá trị
Để xem thông tin của S-Cart:
Để cập nhật core của S-Cart hoặc các bản vá lỗi:php artisan sc:info
composer update s-cart/core
Hoặc bạn cũng có thể sử dụng php composer.phar update s-cart/core
nếu bạn chưa cài đặt composer.Để tạo mới một plugin:
Ví dụ:php artisan sc:make plugin --name=Group\PluginName
php artisan sc:make plugin --name=Payment\Paypal
Để tạo file backup dữ liệu (Thư mục chứa file là stogare/backups):
Để phục hồi dữ liệu từ 1 file .sql :php artisan sc:backup --path=abc.sql
Để tùy chỉnh giao diện trang admin:php artisan sc:restore --path =abc.sql
Lệnh này sẽ tạo mới thư mucphp artisan sc:customize admin
resources/views/admin
và file config/admin.php
Sau khi set giá trị
customize=true
trong config/admin.php
, bạn đã có thể chỉnh sửa giao diện admin theo ý mình. Chi tiết TẠI ĐÂY