Dingo\Api\Console\Command\Cache::getFreshApplication PHP Method

getFreshApplication() protected method

Get a fresh application instance.
protected getFreshApplication ( ) : Illuminate\Contracts\Container\Container
return Illuminate\Contracts\Container\Container
    protected function getFreshApplication()
    {
        $app = (require $this->laravel->basePath() . '/bootstrap/app.php');
        $app->make(Kernel::class)->bootstrap();
        return $app;
    }