Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 3cd0856

Browse files
committed
Update index.php
1 parent 30ca4fb commit 3cd0856

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

public/index.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Illuminate\Foundation\Application;
34
use Illuminate\Http\Request;
45

56
define('LARAVEL_START', microtime(true));
@@ -13,5 +14,7 @@
1314
require __DIR__.'/../vendor/autoload.php';
1415

1516
// Bootstrap Laravel and handle the request...
16-
(require_once __DIR__.'/../bootstrap/app.php')
17-
->handleRequest(Request::capture());
17+
/** @var Application $app */
18+
$app = require_once __DIR__.'/../bootstrap/app.php';
19+
20+
$app->handleRequest(Request::capture());

0 commit comments

Comments
 (0)