You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really stucked to generate key on PHP as I'm always having some issues despite all my tests...
When I run this command below:
php artisan key:generate
I'm getting this:
PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\Users\sissa\Documents\project-main\bootstrap\app.php:14
Stack trace:
#0 C:\Users\sissa\Documents\project-main\artisan(20): require_once() #1 {main}
thrown in C:\Users\sissa\Documents\project-main\bootstrap\app.php on line 14
Here is the line 14 from bootstrap\app.php:
$app = new Illuminate\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
Before this I ran the command composer dump-autoload because vendor folder was not present on project directory.
I also removed composer lock file.
I tried to run command below: composer install --no-scripts
With result below:
No composer.lock file present. Updating dependencies to latest instead
of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- league/flysystem-aws-s3-v3[3.0.0, ..., 3.16.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.13.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.10) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.13.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires league/flysystem-aws-s3-v3 ^3.0 -> satisfiable by league/flysystem-aws-s3-v3[3.0.0, ..., 3.16.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\tools\php82\php.ini
You can also run php --ini in a terminal to see which files are used
by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-fileinfo to temporarily ignore these required extensions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm really stucked to generate key on PHP as I'm always having some issues despite all my tests...
When I run this command below:
php artisan key:generate
I'm getting this:
PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\Users\sissa\Documents\project-main\bootstrap\app.php:14
Stack trace:
#0 C:\Users\sissa\Documents\project-main\artisan(20): require_once()
#1 {main}
thrown in C:\Users\sissa\Documents\project-main\bootstrap\app.php on line 14
Here is the line 14 from bootstrap\app.php:
Before this I ran the command
composer dump-autoload
because vendor folder was not present on project directory.I also removed composer lock file.
I tried to run command below:
composer install --no-scripts
With result below:
No composer.lock file present. Updating dependencies to latest instead
of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- league/flysystem-aws-s3-v3[3.0.0, ..., 3.16.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.13.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.10) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.13.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires league/flysystem-aws-s3-v3 ^3.0 -> satisfiable by league/flysystem-aws-s3-v3[3.0.0, ..., 3.16.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\tools\php82\php.ini
You can also run
php --ini
in a terminal to see which files are usedby PHP in CLI mode.
Alternatively, you can run Composer with
--ignore-platform-req=ext-fileinfo
to temporarily ignore these required extensions.Any suggestions?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions