If you’re having this error Class ‘Pbmedia\LaravelFFMpeg\FFMpegServiceProvider’ not found, then here is a Fixed for you to try. It is important to note that, there are a number of things that could lead to this error in your code. The catch we have specified here is the major reason to hit this error.
What does the error mean?
Technically, your app cannot find the class you’re referring to in your code. In Maybe, you added a namespace to a class that no longer lives in that location or was never there. It could be a typo in your namespace or whatever place you’re trying to reference this class from. The point here is this class ‘Pbmedia\LaravelFFMpeg\FFMpegServiceProvider’ is not found and everything fails.
How to reproduce the error:
Particularly in my situation, I made an upgrade to the Laravel FFmpeg package, and the service provider class changed so I needed to update the class reference in the config/app providers section.
How to Fix Class ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider::class,
Go to config app.php and replace the service provider class reference with this
And then move to the aliases section and also replace with this
'FFMpeg' => ProtoneMedia\LaravelFFMpeg\Support\FFMpeg::class
If you’re reading this post like months from now, you should check the Laravel FFMpeg github page for latest updates.
As earlier stated, read the error message printed on your console carefully and trace down to where you’re referencing this class that is causing this bug. Then, replace it with the proper address to where the class lives.
- How to fix Illegal string offset PHP
- New updates for PEST PHP – higher-order expectations, Ray debugging integration,
- Array to string conversion error in php
- What to consider when starting a YouTube channel
- Sony $900 Professional Drone
- How to Recover Unsaved MS Word Documents on Windows 10
- How to find the Next or Previous item in the database. Laravel
- How to integrate Vimeo Player SDK in Vuejs
- PDF Free Download – The Life Changer – Chapter One
- PDF Download – The Life Changer – Characterization
- PDF Download – The Life Changer – Plot Summary