package has corrupted project - laravel

I installed this package which has corrupted my project I have removed the package completely from the composer.json file and done a composer update I also have removed any code that references that package and I'm still getting this error
FatalErrorException in
50315282edd449c1ae6f735378f3cdd304559dde.php line 93:
Class 'Share' not found
chencha/share errors Share class not found:
Provider
Chencha\Share\ShareServiceProvider::class,
Alias:
'Share' => Chencha\Share\ShareFacade::class,

If you actually deleted all references to the package then it can be a cache problem.
Try:
composer dump-autoload && php artisan clear-compiled

Related

How to remove ckeditor package (error: Class 'Ckeditor\CkeditorServiceProvider' not found)?

I followed the steps mentioned here:
How to remove a package from Laravel using composer?
including the step: Remove Service Provider from "app/config/app.php" (reference in "providers" array)
However, since I got an error:
In ProviderRepository.php line 208:
Class 'Ckeditor\CkeditorServiceProvider' not found
Script #php artisan package:discover handling the post-autoload-dump event returned with error code 1
The app is down and I cannot do any operation in terminal. How to get rid of the reference to this class?
Then run these commands.
php artisan cache:clear
composer dump-autoload -o
If an error occurs while clearing cache, then delete cache files under bootstrap/cache manually.

Provider Class not found in In ProviderRepository.php line 208

I have create a simple Laravel Package and pushed it on Github
https://github.com/akshaykhale1992/model-notes
and Published the Package on Packagist
https://packagist.org/packages/akshaykhale1992/model-note
I tried to install it in my laravel application, it pulled the package from Github but the package installation was not successful.
Below is the Error that is returned by composer command
root#root.com:~/$ composer require akshaykhale1992/model-note
Using version dev-master for akshaykhale1992/model-note
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing akshaykhale1992/model-note (dev-master 5543914): Cloning 554391487e from cache
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover
In ProviderRepository.php line 208:
Class 'AkshayKhale1992\ModelNote\ModelNoteProvider' not found
Script #php artisan package:discover handling the post-autoload-dump event returned with error code 1
Thanks in advance.
Terminal Screenshot
In order for composer to properly generate the autoload file for your package (as well as all packages) it needs to know where to find the namespaces and files that are referenced. This is done via the autoload entry in composer.json
In your case, since you are already following the PSR-4 standard you need something like:
"autoload": {
"psr-4": {
"AkshayKhale1992\\ModelNote\\": "src/"
}
}

Laravel Error on Logging

I just cloned a project of a colleague of mine.
Configured httpd. But when I go to the landing page I get:
FatalThrowableError in ConfigureLogging.php line 59:
Call to undefined method Illuminate\Foundation\Bootstrap\ConfigureLogging::configureHandler()
Laravel is 5.0. Does anyboy had the same issue?
EDIT
I solved this problem, because in config/app.php the variable 'log' was missing. But now:
Class 'Illuminate\Notifications\NotificationServiceProvider' not found
First, make sure that vendor/laravel/framework/src/Illuminate/Notifications/NotificationServiceProvider.php exists. If not, rm -r vendor; composer install.
Second, make sure that your autoload path is OK: In bootstrap/autoload.php, ensure that it says require __DIR__ . '/../vendor/autoload.php'; on line 17.
Third, dump all of your config cache: php artisan cache:clear.
Fourth, reinitialize the composer autoloader: composer dumpautoload.
Report back as to whether the problem is fixed or not.

anyone got an error i get while installing teepluss/theme in laravel

I wanted to install teepluss/theme so I added it to my composer.json
but now I get this error:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'SuperClosure\Serializer' not found
I was capable to solve the first error by adding >"jeremeamia/superclosure": "^2.0"
but now when I add >Teepluss\Theme\ThemeServiceProvider::class, in app.php providers I get a new error :
> [ErrorException] Illegal offset type in unset
here's what i got in the script in composer.json
If you already run composer update, you can try run this script
php artisan config:cache
and
php artisan cache:clear.It can help you resolve that problem

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

Resources