Upgrade guide
Instructions for upgrading S-Cart 7.2 from version 7.1
Step 1: Replace Laravel passport with Sanctum
In the file "app/Http/Kernel.php" -> config api, add new line "\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,"
Step 2: Update composer.json
Update core version:
Update core version:
Step 4: Run composer update
- Run command line
Step 1: Replace Laravel passport with Sanctum
In the file "app/Http/Kernel.php" -> config api, add new line "\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,"
In the file "config/auth.php" , replace "passport" => "sanctum"'api' => [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, // add new
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
Step 2: Update composer.json
Update core version:
Step 3: Update file config "config/s-cart.php""require": {
"s-cart/core": "~7.2.3"
}
Update core version:
'version' => '7.2',
'sub-version' => '7.2.3',
Step 4: Run composer update
php composer.phar update
- Run command line
php artisan sc:info
to check version information.
Related topics
Latest Document
- Customize search page 2023-08-02
- Discount code (coupon) 2023-05-14
- Data relations in S-Cart 2023-02-05