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

Commit 78d906b

Browse files
committed
Add Laravel 5.7 support
1 parent 7e52924 commit 78d906b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lucid

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#!/usr/bin/env php
22
<?php
33

4-
if (file_exists(__DIR__.'/vendor/autoload.php')) {
4+
if (file_exists('./vendor/autoload.php')) {
5+
require './vendor/autoload.php';
6+
} else if(file_exists(__DIR__.'/vendor/autoload.php')) {
57
require __DIR__.'/vendor/autoload.php';
68
} else {
79
require __DIR__.'/../../../bootstrap/autoload.php';
810
}
911

10-
$laravel = require __DIR__.'/../../../bootstrap/app.php';
12+
if (file_exists('./bootstrap/app.php')) {
13+
$laravel = require'./bootstrap/app.php';
14+
} else {
15+
$laravel = require __DIR__.'/../../../bootstrap/app.php';
16+
}
1117

1218
$commands = [
1319
new Lucid\Console\Commands\ChangeSourceNamespaceCommand(),

0 commit comments

Comments
 (0)