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,"

        'api' => [
            \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, // add new 
            'throttle:api',
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
        ],

In the file "config/auth.php" , replace "passport" => "sanctum"

Step 2: Update composer.json

Update core version: 

"require": {
      "s-cart/core": "~7.2.3"
}

Step 3: Update file config "config/s-cart.php"

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