Skip to content

Laravel 5.6 to Laravel 8 upgrade issue : Class config does not exist #41848

Closed Answered by aherrao
aherrao asked this question in Q&A
Discussion options

You must be logged in to vote

Adding the following code to the file bootstrap.php solved my issue.

use Illuminate\Http\Request;
use Illuminate\Foundation\Http\Kernel;

$router = app('router');
$kernel = new Kernel($app, $router);
$kernel->handle(
    $request = Request::capture()
);

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tarekshaker1690
Comment options

@anegaprabhu
Comment options

@aherrao
Comment options

@chancle
Comment options

@manikbd
Comment options

Answer selected by aherrao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #41847 on April 06, 2022 06:56.