daniel-werner / laravel-schemacrawler

Laraver wrapper package for SchemaCrawler. Generate ER diagram for your Laravel application right from the database.
https://www.danielwerner.dev
MIT License
42 stars 3 forks source link

No output file generated in SchemaCrawler #10

Open TamilJackson opened 3 years ago

TamilJackson commented 3 years ago

No output files generated in SchemaCrawler

While using below command, getting no error in cmd php artisan schema:generate Generated diagram to D:\xampp\htdocs\public_html\configurationTool\storage\app\schema.pdf

But in storage\app folder, no files are there.

Using /schema route in application showing below error since it has no files _Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException The file "D:\xampp\htdocs\publichtml\configurationTool\storage\app\schema.png" does not exist

Having error in cmd output file too C:\Users\lenovo\AppData\Local\Temp\sf_proc_00.err _Error: dot: can't open D:\xampp\htdocs\publichtml\configurationTool\storage\app\schema.png: No such file or directory

daniel-werner commented 3 years ago

Thanks for reporting the issue Tamil.

As this package used Graphviz to generate the diagram, do you have it installed on your machine? https://graphviz.org/download/

I did not test this on windows, please let me know if installing Graphviz helped, thanks.

TamilJackson commented 3 years ago

Yes. I have already installed Graphviz for windows. After installing Graphviz, dot cmd was recognized, but not generating output file. Output folder permission is also already given.

quyle92 commented 2 years ago

The same problem here. I've successfully install Graphviz for Window10 (can assure that as I also use "beyondcode/laravel-er-diagram-generator" package which requires Graphviz as dependency) but no output was generated.