We are having a new error related with laravel/passport: 7.5.1. Today, this library has been working as the last week. But this stops showing this message via Postman:
Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated.
Do someone knows something about this issue?
We don't know how to continue with this...
We're using Laravel 5.7 (we know that...)
We "solved" this temporally downgrading the library lcobucci/jwt from 3.4.0 to 3.3.3.
help me in laravel 5.8
set in composer.json
"laravel/passport": "^7.5",
"lcobucci/jwt": "3.3.2",
and update vendor
composer update
For me downgrading, lcobucci/jwt worked for me. I was currently using 3.4.* but downgraded it to a constant 3.3.3
to downgrade I run the command
composer require lcobucci/jwt 3.3.3
And that was it. But my only concern is I am not certain if this is a temporary or a permanent solution to this issue. But at least it will reboot things up if your system failed cause of that error
Related
Laravel launchs a security release. I'm using Laravel 6.18.12 and trying to update to 6.18.29, so when I updated my composer.json file with "laravel/framework": "^6.18.29" I take this error:
Reading about it in stackoverflow I see that people that installed the doctrine/inflector at 1.4 fixed their problems. So I did it: composer install doctrine/inflector:1.4 and try update again the laravel with composer update laravel/framework but a new error happened:
Them I installed also the symfony/polyfill-php7.3 (I'm using PHP 7.3). Done that I could update the Laravel version, but I'm always getting this error 401 once I try to get my api data:
This happens to all my api requests. Looks like something about the auth:api middleware, but I'm not sure why. My user is logged in the web, I can use auth() stuff, but the api looks like the user isn't authenticated. Everything was working as fine before this update.
Ps: I'm not using passport, but I'm using spark alongside my project.
As I thought, this Laravel patch has to been solved also in the Spark, so now I'm updating to the newest version. For further information: Taylor answer
I want to install phpoffice/phpexcel in My Project.
When composer install or composer update, i receive error:
Package phpoffice/phpexcel is abandoned, you should avoid using it.
Use phpoffice/phpspreadsheet instead.
What is wrong with my project? Please help me. My project use PHP version 7.1.3 and Laravel version 5.7
It means the project is not being maintained. you can still use if you want to.
That message you are getting is just a warning, not an error so there is nothing wrong with your project. So you could ignore the warning and continue using the package with your current code.
However, as the message said you should avoid using it because the package might stop working properly if you decide to update laravel, php or any other dependencies. And if it does stop working or you encountered a bug, there will no code maintainer to help you solve your issue.
In your case, phpoffice/phpspreadsheet package actually provide a useful entry in their documentation to help you migrate to their package, so you should definitely give it a read as there are quite a few breaking changes if you decide to use their package.
I am using Reportico reporting module, and follow the installation instructions listed on official website, but somehow its not working.
Here are the steps I followed:
I have created a fresh laravel project mentioned on laravel docs:
composer create-project --prefer-dist laravel/laravel blog
Then within the project root directory, I executed the following command by using composer:
composer require reportico/laravel-reportico "~5.2"
And remaining steps are same as listed on Reportico website. It did not give me any error message in the steps, but finally when I go to the url:
http://localhost:8000/index.php/reportico
It is showing error message that route not found.
Can anybody suggest how to fix this, or is there any free-open-source reporting tool which I can use with Laravel project.
This project was upgraded to 5.4 in February, but unfortunately there was a problem which made it unavailable to the world. I believe I have fixed this now so please retry the composer require command and you should get version 5.4 of the package.
If it doesnt work you could try using the following instead to force the version update:
composer require "reportico/laravel-reportico" "dev-master"
Also, the error messsage you are getting implies you havent added to your config/app.php file in the providers section
Reportico\Reportico\ReporticoServiceProvider::class
This is very important. Please let me know if this works.
Peter
I had the same issue.
Changing the url to below worked for me
http://localhost:8000/index.php/reportico
Hope it helps someone.
I am using http://www.maatwebsite.nl/laravel-excel/docs to export and import the database to excel file. Everything was running like a charm, but after several days, I found that something wrong with this library. It does not sudden happen, indeed, I add more features in the application and finally found this error.
FatalErrorException in LaravelExcelReader.php line 29:
Trait 'Illuminate\Foundation\Bus\DispatchesJobs' not found
It seems something wrong with the library that used from Maatwebsite library. After several hours trying to figure out what's the problem, I couldn't find any clue where the DispatchesJobs comes from.
Maybe, anybody have a clue for a problem that I face? I really appreciated for that. Thanks!
This trait was added in Laravel 5.1 - in older versions you're supposed to use Illuminate\Foundation\Bus\DispatchesCommands trait instead. They work in a very similar fashion.
You can see more details on how to use that trait here: http://laravel.com/docs/5.0/bus
That was true #jedrzej.kurylo.. the Maatwebsite plugin version is the root cause of the problem. A problem that happen on me is that I declare in composer.json this.
"maatwebsite/excel": "~2.0",
if I remember well, I do run composer self-update before and automatically composer install the laters version(even though I already declare my composer.json in version 2.0).
To solve this problem, I add more detail in my composer.json
"maatwebsite/excel": "~2.0.0",
and then run composer update. The result is that the composer downgrade the library version.
Updating dependencies (including require-dev)
- Removing maatwebsite/excel (v2.1.0)
- Installing maatwebsite/excel (v2.0.10)
Loading from cache
After that, everything should be alright!
I want to use wepay PHP sdk in laravel 5 using composer but I didn't found any laravel package for it.
Can you please tell me me how can I do this?
The package is available via packagist.org - unfortunately only as a dev-master branch and with suboptimal autoloading configured (I'm trying to fix that, sent both a patch and opened an issue suggesting they tag their version).
Adding that package is basic Composer action. The classes should be automatically available within Laravel wherever you think you want to use it.