Commit 88bf0548 authored by Sergi Tur's avatar Sergi Tur

Allow using /vendor/autoload.php instead of /../../autoload.php when using laravel command

parent 4a8483ce
#!/usr/bin/env php
require __DIR__.'/../../autoload.php';
//require __DIR__.'/vendor/autoload.php';
if(file_exists(__DIR__.'/../../autoload.php')) {
require __DIR__.'/../../autoload.php';
} else {
require __DIR__.'/vendor/autoload.php';
$app = new Symfony\Component\Console\Application('Laravel Installer', '1.2.0');
$app->add(new Laravel\Installer\Console\NewCommand);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment