Laravel 5.4 and Mongodb 3.2 Configuration Issue - php

we are facing isssue in configuring Laravel 5.4 with Mongodb 3.2. We have done follow things but still we are facing issue in this project, it would be great if i will get solution for this
Installed Composer & Install Laravel 5.4
Install Package composer require mongodb/mongodb and composer require jenssegers/mongodb ^3.2.
we have also add mongodb in our php7.1 (http://mazau.com/info.php)
Default database driver to : mongodb (database.php and .env file)
We have also provide proper database credentials and user details.
We are not facing issue in any of above issue at present. But when we try to execute php artisan migrate we face below error.
[Symfony\Component\Debug\Exception\FatalErrorException] Class ‘PDO’
not found
can anyone please help me on this ?

Related

Cannot create a user in Voyager (laravel 6.x)

I've installed the admin package Voyager (without dummy data) on my Laravel project and when I want to create a user to access the admin panel with the following command: php artisan voyager:admin admin#admin.com --create, I get the following error:
After a little bit of searching, I found this link: https://github.com/the-control-group/voyager/issues/5082 => saying that this command does not work with PHP 7.4 and to make it work, I should either upgrade to PHP 7.4.1 or downgrade to PHP 7.3.
I'm using Wamp Server and decided to downgrade to PHP 7.3.12 since this version exists by default in C:\wamp64\bin\php
I have also edited composer.lock and composer.json in my project and then ran the command composer dump-autoload. But it still doesn't work. Am I missing something?
Had the same issue, upgraded to php 7.4.27 and it worked.

Laravel 5.7 upgrade, Uncaught ReflectionException: Class cache does not exist Container.php:779

When upgrading Laravel 5.5 to 5.7 and running composer install I see this error.
Has any one else experienced something similar?
I also upgraded php from 7.1 to 7.2 at the same time using forge, after reverting the code to laravel 5.5 staying with php 7.2 was not an issue.
There were changes from Laravel 5.6 to 5.7 that might have caused this:
From the Upgrade Notes:
A new data directory has been added to storage/framework/cache. You should create this directory in your own application:
mkdir -p storage/framework/cache/data
Then, add a .gitignore file to the newly created data directory:
cp storage/framework/cache/.gitignore storage/framework/cache/data/.gitignore
Finally, ensure that the storage/framework/cache/.gitignore file is updated as follows:
*
!data/
!.gitignore
There was also a change from Laravel 5.5 to 5.6, but from what it looks like this seems unlikely to be the cause.

Laravel Passport not able to install on laravel 5.4.*

Hi I am new to laravel and trying to install the Laravel passport on an existing laravel project. I am trying to run this command
composer require Laravel/passport
When I run the command it shows nothing to install or update. But, I can see that in my composer I have Laravel version ~4.0 and I am using PHP7.1. I have also installed one of its dependency illuminator/encryption=5.4.36.
Can somebody help me out? How to install my Laravel passport?
I am running laravel 5.4.36 (it's locked)
PS: Had to remove composer file content.
You have already installed Laravel Passport. Your composer / console returns that message because its already downloaded.
Your composer.json tells you that you downloaded version 4.0:
"laravel/passport": "~4.0",
Now you just have to move on I recommened going through the documentation.
There is also a nice tutorial from Taylow Otwell regarding Laravel Passport.
https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13
To get started, install Passport via the Composer package manager:
composer require laravel/passport
Next, register the Passport service provider in the providers array of your config/app.php configuration file:
Laravel\Passport\PassportServiceProvider::class,
then the command line again type:
php artisan migrate
For more info look: https://laravel.com/docs/5.4/passport

Composer BowerPHP Error

I am trying to install BowerPHP in my Laravel framework project on my computer using Composer. I have used the composer require "beelab/bowerphp 0.3.*#beta" command in the command prompt but I'm receiving errors:
Can only install one of : symfony/process[v2.7.9,v3.0.2]
Can only install one of : symfony/process[v2.7.8,v3.0.2]
Can only install one of : symfony/process[v2.7.7,v3.0.2]
etc.
From what I understand my framework already has a version of Symfony and I cannot download another package. In addition, the package that I have is not compatible with BowerPHP. What do I do? And am I correct?
So I found the answer. The beelab team did not update their own website but did update their github page. running the composer require beelab/bowerphp:1.0.*#dev would work but running the on on their website would not.

How to install aimeos in laravel 5.1?

I am new with laravel. I have no idea how to install aimeos in laravel 5.1, since the installation guide for laravel 5.0, there is a different service provider in between L5 and L5.1.
I got this error:
C:\xampp\htdocs\classic>composer require aimeos/aimeos-laravel
Using version ^1.0 for aimeos/aimeos-laravel
./composer.json has been updated
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Aimeos\Shop\ShopServiceProvider' not found
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
Please help me.
There's no difference between Laravel 5.0 and 5.1 when installing the Aimeos web shop package:
https://aimeos.org/docs/Laravel/Install_Aimeos
Update:
There seems to be a problem due to a recent change in Laravel 5.1.x because the service provider is now used before composer installs the package. I've fixed this in my test installation by
removing the the provider from config/app.php
removing the Aimeos related artisan commands in the "scripts" section of the composer.json file
running "composer update" afterwards with the aimeos-laravel package as requirement
executing the artisan tasks ("vendor:publish", "migrate", "aimeos:setup", "aimeos:cache") afterwards by hand
Download https://github.com/aimeos/aimeos-laravel.
place package to root or desired folder and while updating the composer set
"require": {
.......
"laravel/framework": "^5.1.11",
......
}
then brows
https://aimeos.org/docs/Laravel/Install_Aimeos#Laravel_5.0.2F5.1_and_Aimeos_1.0 Link and follow the instructions.

Categories