To resolve the issue, add the following code to the /bootstrap/cache/packages.php file:
/bootstrap/cache/packages.php
'laravel/sanctum' => array( 'providers' => array( 0 => 'Laravel\\Sanctum\\SanctumServiceProvider', ), )
=> array( 'providers' => array( 0 => 'Laravel\\Sanctum\\SanctumServiceProvider', ), )