Error removing UniSharp laravel-ckeditor with composer - laravel

I installed laravel-ckeditor via composer in my Laravel 5.5 project as described on their GitHub (https://github.com/UniSharp/laravel-ckeditor). Now i don't need it anymore and want to remove it. I executed composer remove unisharp/laravel-ckeditor but i get this error messge:
In ProviderRepository.php line 208:
Class 'Unisharp\Ckeditor\ServiceProvider' not found
I have on idea what causes this error. I tried reinstalling and removing it several times, but i always get the same error message.Thanks for any help.
Edit: The error is caused by artisan. I can't execute php artisan cache:clear anymore and directly before the error, composer prints
> #php artisan package:discover
into the console.

Related

Laravel 8 Error Illuminate\Support\ServiceProvider::loadRoutesFrom()

I installed jetstream and livewire. After installation I got this error
Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening required 'D:\xampp\htdocs\suo\webapp\vendor\laravel\jetstream\src/../routes/.php' (include_path='D:\xampp\php\PEAR')
I tried to clear cache using following command
php artisan config:cache
But it also shows many warnings and then this error
Symfony\Component\ErrorHandler\Error\FatalError
Couldn't find any working solution. Any idea?

ErrorException (E_NOTICE) Undefined index: name laravel 7

I have clone my project from heroku and am using wampserver and composer version 2. Can someone help me to understand why am I get this error.
In PackageManifest.php line 131:
Undefined index: name
Script #php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
composer update laravel/framework
The above step solves the issue.
I had same issue with my composer installer, after updating composer it works
I think I had the exact same error the other day, and for me, the solution was to downgrade the composer with:
composer self-update --1
Don't know if you will accept this as an answer, but that's what worked for me.

Composer having trouble with installing fresh laravel libraries

I'm installing a new Laravel 5.6 ambient with composer, but every time i do a "Laravel new projectName", when i run composer install or composer update, it returns this error:
Could not scan for classes inside
"path/to/vendor/hamcrest/hamcrest-php/hamcrest" which does not appear
to be a file nor a folder
After hours of trying to fix it, I made a test, manually creating the hamcrest folder. When i ran composer install again, it pointed that composer couldn't read a file in the "psysh" library, when i went to check it, the folder was completely empty. I downloaded the files again and put them in the folder, just to test if it was going to run. After doing that and running composer install, this error popped out
Illuminate\Foundation\ComposerScripts::postAutoloadDump #php artisan
package:discover
In ProviderRepository.php line 208:
Class 'Laravel\Tinker\TinkerServiceProvider' not found
Script #php artisan package:discover handling the post-autoload-dump
event returned with error code 1
I don't know where i messed up, since this is a fresh install of composer + laravel. I ran composer diagnose, but everything is ok. Does anyone where is my error?
Laravel Tinker
composer require laravel/tinker
Once the package has been installed, you should add Laravel\Tinker\TinkerServiceProvider::class to the providers array in your config/app.php configuration file.
then in console, make a
composer dump-autoload

PHP Artisan Tinker not working with Laravel 5.5.16

I run php artisan tinker but it didn't work it just show a message like this
c:\xampp\htdocs\app_tpa>php artisan tinker
[ErrorException]
rmdir(C:\Users\KIMUNG~1\AppData\Local\Temp\php-xdg-runtime-dir-fallback-): Directory not empty
I tried to run composer require laravel/tinker, but it doesn't fix my problem
This issue is now resolved as per these github issues:
laravel/tinker#29
bobthecow/psysh#430
The proper solution now is to do composer update

InvalidArgumentException Please provide a valid cache path Error laravel 5.2

I'm working with Laravel 5.2 and i have an error when i run composer update or artisan optimize ..
i've searched on my vendor, i didn't found compiled.php file ! i try to generate this i run the artisan optimize, i have the same error
[InvalidArgumentException]
Please provide a valid cache path
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1
how i can resolve this ?
Please Try it:
create these folders under storage/framework:
sessions
views
cache
And also you can use this command to install:
sudo composer install
Its will be working.

Resources