slampenny / Swaggervel

Swagger for Laravel
492 stars 175 forks source link

/api/docs not working on Laravel 5.4 #82

Open garenk02 opened 7 years ago

garenk02 commented 7 years ago

hi @slampenny

when I use this package on Laravel 5.4 then I browse to http://127.0.0.1:8000/api/docs it show error:

FatalErrorException in Facade.php line 221: Call to undefined method Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags()

can u tell me how to fix this error? is it because the new laravel (5.4) version that made changes on Blade Compiler?

Many thank

AzlainSaavedra commented 7 years ago

Hi @garenk02 i same error, fixed u this error?

peteracs commented 7 years ago

Temporary solution Go to vendor/jlapp/swaggervel/src/Jlapp/Swaggervel/routes.php

Remove this two line

Blade::setEscapedContentTags('{{{', '}}}');
Blade::setContentTags('{{', '}}');
garenk02 commented 7 years ago

Oke @peteracs , will try soon. Really appreciate for ur respon.

fgreinus commented 7 years ago

You could also give https://github.com/appointer/Swaggervel a shot. I'm currently maintaining it as this project seems to be abandoned.

urukalo commented 7 years ago

there is pull request for this issue: #86

changyuan commented 7 years ago

Oke @peteracs ,will try soon. Really appreciate for your respon.

mhetreramesh commented 6 years ago

I'm still facing this issue, what could be the possible solution for this?

LordRahl90 commented 6 years ago

@peteracs, thanks your solution works quiet well, but has there been any permanent solution thus far???

mehranhadidi commented 6 years ago

@peteracs thanks for your solution. works like a charm. Is there any permanent solution or should I send a PR to fix it?