Fatal error: require(): Failed opening required '/Users/hejiaxing/work/blog/vendor/autoload.php' (include_path='.:') in /Users/hejiaxing/work/blog/artisan
when I run artisan like this: php artisan serve
Related
when i run "php artisan jetstream:install livewire" I get this error :
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in H:\xampp\htdocs\tadavom123\bootstrap\app.php:14
i try to fix it with this codes but not working :
composer update
php artisan clear-compiled
composer dump-autoload
composer update --no-scripts
my composer version is : 2
php version : 7.3.10
laravel version: 8
in my case, you have to make sure that you write that code in folder that you want to run. In other hand, you need have a library php5-curl installed in your system, do this:
sudo apt-get install php7.3-curl
this curl have to be same with your php version. good luck.
I wanted to change the app.name of my Laravel project, I run:
php artisan app:name Retro
But have error:
Fatal error: Uncaught ReflectionException: Class Retro\Console\Kernel does >not exist in C:\photo->storage\vendor\laravel\framework\src\Illuminate\Container\Container.php:779
Then, I edited APP_NAME = Retro, and run:
php artisan config:clear
But it not working
Try this
After update App name
php artisan app:name myname
Follow this commands
php artisan cache:clear
php artisan config:clear
composer dump-autoload
while installing the laravel/scout in my laravel 5 app, am getting error.
I have run the following command in putty
composer require laravel/scout
And I got the following error message:
php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
Any idea why am getting this error message.
php artisan not responding after upgrading laravel 5.1 to 5.2.
I followed the upgrade guide here
https://laravel.com/docs/5.2/upgrade
Even composer update gives an error at
Generating autoload files
> php artisan clear-compiled
Could not open input file: artisan
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
What might be the problem?
I try to install Laravel4 on windows 8.
I download the file, unzip it, and call "composer update"
then i have these messages :
PHP Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\bootstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
PHP Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\bootstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\bootstrap\autoload.php on line 17
Call Stack:
0.0002 231464 1. {main}() D:\sites\lara\artisan:0
0.0005 236592 2. require('D:\sites\lara\bootstrap\autoload.php') D:\sites\lara\artisan:16
Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\bootstrap\autoload.php on line 17
Call Stack:
0.0002 231464 1. {main}() D:\sites\lara\artisan:0
0.0005 236592 2. require('D:\sites\lara\bootstrap\autoload.php') D:\sites\lara\artisan:16
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Warning: require(D:\sites\lara\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\sites\lara\boo
tstrap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
PHP Fatal error: require(): Failed opening required 'D:\sites\lara\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\sites\lara\boot
strap\autoload.php on line 17
PHP Stack trace:
PHP 1. {main}() D:\sites\lara\artisan:0
PHP 2. require() D:\sites\lara\artisan:16
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose]
[-o|--optimize-autoloader] [packages1] ... [packagesN]
If I try by typing composer create-project laravel/laravel
I have
Installing laravel/laravel (v4.0.0)
- Installing laravel/laravel (v4.0.0)
Downloading: 100%
Downloading: 100%
Downloading: 100%
[Composer\Downloader\TransportException]
The "http://nodeload.github.com/laravel/laravel/zip/v4.0.0" file could not be downloaded: failed to open stream: Unable to find the socket transport "ssl"
- did you forget to enable it when you configured PHP?
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [package] [directory] [version]
Thanx for your help
Jason Lewis is right. Just comment out the openssl extension in your php.ini, run the command again in cmd shall fix your problem. No need to restart your PC or server.
You should not be calling update. You should first call install.
As for the create-project method, I also had the same problem. But it went away.
Please consult the documentation fully when attempting an install.