Category : xampp

I have followed the instructions on the following link: https://www.php.net/manual/en/mongodb.installation.windows.php But when i try one of the following comands: composer require jenssegers/mongodb composer require jenssegers/mongodb:dev-develop composer require jenssegers/mongodb –ignore-platform-reqs They all return the same error: Using version ^3.7 for jenssegers/mongodb ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your ..

Read more

<?php use IlluminateSupportFacadesRoute; Route::get(‘/’, function () { $member = [‘Joey’, ‘Dee dee’, ‘Johnny’, ‘Tommy’]; echo ‘<h2>The Ramones</h2>’; foreach ($member as $angg); echo ‘<li>’ .$angg. ‘</li>’; endforeach; }); <?php I get this following error where trying to run it using Laravel 5.2 ,coded using VSCode http://localhost/TUGAS1WEBPROG/public/web and i get this following error afterwards ParseError syntax error, ..

Read more

My environment: XAMPP Version 7.2.8 PHP 7.2.8 (this was installed together when the XAMPP was installed.) Apache 2.4.34 (this was installed together when the XAMPP was installed.) I am new to Laravel. I made Laravel project folder and executed the command php artisan key:generate to generate app_key. but I got the error below: PHP Warning: ..

Read more

I am getting below error after downloading the package: **In MigrateCommand.php line 58: Too few arguments to function IlluminateDatabaseConsoleMigrationsMigrateCommand::__construct(), 1 passed in C:xampphtdocspyrovendoranomalystreams-platformsrcDatabaseMigrationMigrationServiceProvider.php on line 88 and exactly 2 expected** Above error is generated when entering the command php artisan install Sourc..

Read more

I tried everything on the stack overflow to get rid of this error. I created a laravel project in xampp and when i run the command php artisan serve this error shows: "Call to undefined function IlluminateEncryptionopenssl_cipher_iv_length()". I already uncommented the open ssl extention and set extension path ext. i tried this on differnt local ..

Read more

I get this error anytime i make a request to my laravel http://127.0.0.1:8000/* "Access to XMLHttpRequest at ‘http://127.0.0.1:8000/*’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. xhr.js:184 POST http://127.0.0.1:8000/* net::ERR_FAILED" And have been trying all my ..

Read more

I have two different laravel apps running locally on xampp. I’ve noticed that if one app makes an API call to the second app than the latter uses the database connection of the first app instead of it’s own db connection. Is the second app not bootstraping or does it’s connection get’s overwritten? Did anyone ..

Read more

I’m trying to set up Laravel 6 to connect to my XAMPP MySQL (MariaDB) database and I am receiving the following error: SQLSTATE[HY000] [2006] MySQL server has gone away (SQL: create table `migrations` (`id` int unsigned not null auto_increment primary key, `migration` varchar(255) not null, `batch` int not null) default character set utf8mb4 collate ‘utf8mb4_unicode_ci’) ..

Read more

When I tried to migrate the database in my Laravel project it cam up with this error: PDOException::(“SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. I looked at several other solutions to this problem including many on this site and none of them so far have solved the problem ..

Read more