2016-06-24 12 views
0
[ErrorException]                                     

Argument fehlt 4 für Dingo \ Blueprint \ Blueprint :: erzeugen(), genannt in/Applications/XAMPP/xamppfiles/htdocs/api/Kreditoren /dingo/api/src/Console/Command/Docs.php
auf Linie 95 und definiertLaravel Fehlendes Argument 4 für Dingo Blueprint Blueprint :: erzeugen()

Exception-Trace:

() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/dingo/blueprint/src/Blueprint.php:83 
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/dingo/blueprint/src/Blueprint.php:83 
Dingo\Blueprint\Blueprint->generate() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/dingo/api/src/Console/Command/Docs.php:95 
Dingo\Api\Console\Command\Docs->handle() at n/a:n/a 
call_user_func_array() at  /Applications/XAMPP/xamppfiles/htdocs/api/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 
Illuminate\Container\Container->call() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/laravel/framework/src/Illuminate/Console/Command.php:150 
Illuminate\Console\Command->execute() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/symfony/console/Command/Command.php:256 
Symfony\Component\Console\Command\Command->run() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/laravel/framework/src/Illuminate/Console/Command.php:136 
Illuminate\Console\Command->run() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/symfony/console/Application.php:841 
Symfony\Component\Console\Application->doRunCommand() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/symfony/console/Application.php:189 
Symfony\Component\Console\Application->doRun() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/symfony/console/Application.php:120 
Symfony\Component\Console\Application->run() at /Applications/XAMPP/xamppfiles/htdocs/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107 
Illuminate\Foundation\Console\Kernel->handle() at /Applications/XAMPP/xamppfiles/htdocs/api/artisan:36 

Antwort

0

Dies hat in der Master-Zweig der Dingo API aufgelöst worden ist, versuchen diese ziehen in deine Entwicklung.

IncludePath wurde nicht als der vierte Parameter in Dingo \ Blueprint \ Blueprint :: generate() Funktionsaufruf enthalten. Hier ist die link zu der aktualisierten Datei auf dem Master-Zweig.

0

Kevins Lösung funktioniert nicht für mich. (mit Laravel 5.1)

nach dem Ersatz von Docs.php, habe ich Fehler mit Blueprint-Klasse.

So:

Anstelle von Kevins Lösung. Ich habe eine einfache gefunden, die in einer Sekunde funktioniert.

:)

ändern Datei: Verkäufer/Dingo/api/src/Console/Befehl/Docs.php

$contents = $this->blueprint->generate($this->getControllers(), $this->argument('name'), $this->argument('version')); 

mit dem folgenden Code:

$contents = $this->blueprint->generate($this->getControllers(), $this->argument('name'), $this->argument('version'),''); 

von nur Hinzufügen eines ,'' am Ende des Funktionsaufrufs, die Stelle des vierten Arguments.