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

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?

Related

Server not loading Laravel app after a composer install

After a deploy which required an composer install, the app is no longer working at all, and I get this error in nginx error log:
PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:335
I use Laravel 9 with php8.1.
I tried to delete the vendor and reinstall composer, clearing cache, optimize.
Thanks.

Error removing UniSharp laravel-ckeditor with composer

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.

Upgrade to Laravel 5.4 causing undefined method dispatch() on push to Forge

I recently updated Laravel app from 5.3 -> 5.4 and got it working fine on local computer.
I pushed the update to bitbucket which then deployed to my web server via Forge, but I keep getting the following error;
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Events\Dispatcher::dispatch() in /home/forge/appname/vendor/laravel/framework/src/Illuminate/Console/Application.php:56
I have tried deleting cache files from /bootstrap/cache and storage/framework/
and also running php artisan cache:clear and php artisan view:clear
I also tried uninstalling and re-installing the repo on Forge. It seems that it will do the initial install/deploy ok, but then if I push any updates, it fails with the same error.
Anyone got any other ideas?
Only way I found to resolve was to completely delete the site on Forge and then add it as a new one.

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.

Laravel - Error while running php artisan - with MAMP PRO

First steps with Laravel 5 on MacOSX running MAMP PRO stack.
php artisan
I got the following error:
[RuntimeException]
Error Output: PHP Warning:
require(/Users/../../bootstrap/../vendor/autoload.php): failed to open
stream: No such file or directory in
/Users/../../bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required
'/Users/../../bootstrap/../vendor/autoload.php' (include_p
ath='.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in
/Users/../../bootstrap/autoload.php on line 17
It seems to be related with some bootstrap autoload and MAMP php binaries... But this is as far as I can understand this.
Can I have some advices please?
If I run composer update instead, I do get the same Fatal Error.
It seems you have give a wrong path,re install the laravel.
Thank you for your answers.
I had some issues with composer assets plugin. I have:
1) Remove the folder related to the composer assets plugin.
2) Reinstalled.
3) go to the root diretory of my laravel project.
4) run sudo composer install
Runned php artisan and all seems to be working as expected.
Thank you so much for your time.

Resources