0

in my laravel project the barryvdh debugger was installed, I was trying to make pdf using barryvdh pdf package for that i run the composer command on my dev server which was

composer require barryvdh/laravel-dompdf

after that it was showing an error of class not found for that i used the command

php artisan vendor:publish

after that it is showing an error ErrorException (E_NOTICE) Undefined offset: 0 ErrorException …/vendor/laravel/framework/src/Illuminate/Support/Collection.php1802

it is showing the error on dev server.All the API are working fine but web views are not working. please help me out. Thanks in advance.

4
  • Please cache clear first Commented Apr 11, 2021 at 8:20
  • cleared the cache,config,route but it is not working.@ A.A Noman Commented Apr 11, 2021 at 8:23
  • Please share more details, and how this question is related to Composer Commented Apr 11, 2021 at 9:24
  • I installed the same project from server to mylocal and when i run the command composer dump autoload it fixed the problem but not working on server Commented Apr 11, 2021 at 9:31

1 Answer 1

0
php artisan vendor:publish

try this :

php artisan vendor:publish --provider="Barryvdh\DomPDF\ServiceProvider"
Sign up to request clarification or add additional context in comments.

1 Comment

Please add some explanation to your answer such that others can learn from it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.