Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commands artisan #28

Open
benvindo opened this issue Aug 7, 2017 · 0 comments
Open

commands artisan #28

benvindo opened this issue Aug 7, 2017 · 0 comments

Comments

@benvindo
Copy link

benvindo commented Aug 7, 2017

Hi, the commands artisan not working, need update bootsrap/app.php for overrides path your application

app.php

// $app = new Illuminate\Foundation\Application(
//     realpath(__DIR__.'/../')
// );

$app = new Infrastructure\Application(
    realpath(__DIR__.'/../')
);

Application

<?php  

namespace Infrastructure;

class Application extends \Illuminate\Foundation\Application
{
    /**
     * Overrides the path to the application "app" directory.
     *
     * @return string
     */
    public function path($path = '')
    {
        return $this->basePath.DIRECTORY_SEPARATOR.'api';
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant