Skip to content

Commit 9d08c1b

Browse files
committed
add __DIR__ keyword to access autoload.php
1 parent f32ddf2 commit 9d08c1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎config/database.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require '../vendor/autoload.php';
3+
require __DIR__ . '/../vendor/autoload.php';
44

55
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
66
$dotenv->load();

0 commit comments

Comments
 (0)