when i ran the command php artisan serve (keeping the folder in the d drive) I got the below error so i tried pasting the same inside the hddocs to check if it is working correctly but the same error...
I installed xampp and inside the hddocs folder i extracted the package and opened the command and ran the command php artisan serve and got the errors belos
C:\xampp-7.4\htdocs\laravel-jaspen>php artisan serve PHP Warning: require(C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18
Warning: require(C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18
PHP Fatal error: require(): Failed opening required 'C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php' (include_path='D:\xampp-php7\php\PEAR') in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18
Fatal error: require(): Failed opening required 'C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php' (include_path='D:\xampp-php7\php\PEAR') in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18
Yes, i ran the command as said yesterday and also now .. I am getting the error as below...
81 package suggestions were added by new dependencies, use `composer suggest` to see details. Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in D:\jaspen\laravel\vendor\psr\log\src\LoggerInterface.php on line 30 PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0 PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Log\Logger::__construct() must be an instance of Psr\Log\LoggerInterface, instance of Monolog\Logger given, called in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php on line 182 and defined in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\Logger.php:43 Stack trace: #0 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(182): Illuminate\Log\Logger->__construct(Object(Monolog\Logger), Object(Illuminate\Events\Dispatcher)) #1 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(129): Illuminate\Log\LogManager->createEmergencyLogger() #2 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(112): Illuminate\Log\LogManager->get('stack') #3 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(590): Illuminate\Log\LogManager->driver() #4 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.ph in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\Logger.php on line 43 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255