"Class 'ConsoleTVs\Charts\Facades\Charts' not found" - laravel

Please note that, I'm using rappasoft updated boilerplate Laravel 5.8 and I'm using your installation steps but it's giving me this error message:
Class 'ConsoleTVs\Charts\Charts' not found

they forgot to add install charts dependency through composer try this
composer require consoletvs/charts
this will install your missing dependency

Related

PHP Fatal error: Class UpdateHelper\ComposerPlugin contains 2 abstract methods in laravel

I want to install laravel on my windows but getting below error
Using below command install laravel
composer create-project --prefer-dist laravel/laravel:^7.0 learning-app
But getting below error in command prompt after run the composer command
PHP Fatal error: Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in C:\xampp\htdocs\vendor\kylekatarnls\update-helper\src\UpdateHelper\ComposerPlugin.php on line 11
Trying all the commands like composer update but not getting any success.
My php version PHP 7.3.27
Anyone have idea how to solve then let me know
You're trying to install the laravel framework locked at a version released more than 2 years ago, is there a reason for this?
Also, what is the version of your composer (run composer --version)? If you're at the version 2 try downgrading to v1 and try again with the same command, if you really want the 7.0 version of Laravel (or simply install the newest version of the framework).

how to fix error in laravel 5.2

i just doing now laravel 5.2 steam authentication
i am followed this link
https://github.com/invisnik/laravel-steam-auth## Heading ##
i got a error in composer
"Invisnik\LaravelSteamAuth\SteamServiceProvider::class class not a found"
i have add the composer.json file in
"invisnik/laravel-steam-auth": "2.*"
and composer install and then add
app.php
Invisnik\LaravelSteamAuth\SteamServiceProvider::class,
but this error will be display
"Invisnik\LaravelSteamAuth\SteamServiceProvider::class class not a found"
how can fix this error.
You need to import the class or declare it on the fly using by adding a backwards slash
\SteamServiceProvider
Eg:
\SteamServiceProvider::method()
And if you are adding a new package, make sure to run the following composer command to recatch the files.
composer dump-autoload

Cloudstack client installation

I have XAMPP installed on Windows 10. And have successfully installed Composer, Laravel. I can see the basic Laravel project page on my local server.
Just to try things out I also installed yii2. I can see the basic yii2 page also on my local server.
Now I'm trying to install this Generic Cloudstack Client:
https://github.com/PCextreme/cloudstack-client
In XAMPP, under htdocs I have this dir called 'LaravelProjects'.
dir structure
First I made the project with the laravel command:
laravel new PCextreme
Then in PCextreme directory I give the command:
composer require pcextreme/cloudstack-client:~0.1
The composer breaks and shows Conclusion: remove laravel/framework 5.2.41
But in the instructions there is another method to install the package.
When I do that by editting the composer.json in the main Laravel dir. 'LaravelProjects' under xampp/htdocs with these lines:
"require": { "pcextreme/cloudstack-client": "~0.1" }
And then I run the "composer update" command.
I don't get any error.
But as soon as I follow these steps:
Once the package is installed you need to open app/config/app.php and register the required service provider:
`'providers' => [
'PCextreme\CloudstackClient\Providers\LaravelServiceProvider']`
The application breaks.
I can't see the basic page showing 'Laravel 5' on my server anymore.
Instead of that I get a fatal error:
Whoops, looks like something went wrong.
1/1 FatalErrorException in ProviderRepository.php line 146: Class
'PCextreme\CloudstackClient\Providers\LaravelServiceProvider' not found
Further in the instructions, when I give the command below:
php artisan config:publish pcextreme/cloudstack-client
I get this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'PCextreme\CloudstackClient\Providers\LaravelServiceProvider' not found
I have tried out different things that I could find on internet but nothing seems to work in my case.
Could someone kindly help me out with this? Any help is greatly appreciated!
Execute in you project folder command: composer update

Composer error installing laravel-cors

I tried to install laravel-cors
composer require barryvdh/laravel-cors
It installed successfully or so I thought, but then when I went to publish the config I get this error:
[RuntimeException]
Error Output: PHP Fatal error: Cannot redeclare Composer\Autoload\includeFile() (previously declared in /www/vendor/composer/ClassLoader.php:410) in /www/config/vendor/composer/ClassLoader.php on line 413
I have tried removing laravel-cors and I still get this error. I have dumped autoload as well. What am I missing?
Larval 5.2 | PHP 5.6.17
I figured it out. When i typed
composer require barryvdh/laravel-cors
i was in a sub directory. so composer then installed it and the dependencies in a sub directory which is why i was getting that error. If you look closely you can see that it was installing in config
/www/config/vendor/composer/ClassLoader.php:413
/www/vendor/composer/ClassLoader.php:410
Just needed to pay better attention to detail.

Homestead - composer global require is trying to find an incorrect package

I am trying to install Laravel Homestead, and when I enter the following command:
composer global require "laravel/homestead=~2.0"
It returns the error "Your requirements could not be resolved to an installable set of packages."
However, the error shows laavel not laravel as I inputted! Why is it autocorrecting to an incorrect spelling? How can I resolve this?
In order to fix this, I did the following:
sudo open .composer and then within composer.json I rectified the line which was spelt incorrectly.
For some reason, Composer wasn't picking up Laravel and Laavel are spelt differently?!

Resources