laravel-soft-cascade | Cascade Delete & Restore when using Laravel SoftDeletes
kandi X-RAY | laravel-soft-cascade Summary
kandi X-RAY | laravel-soft-cascade Summary
Cascade Delete & Restore when using Laravel SoftDeletes
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get relations .
- Run the relations .
- Get the backtrace use .
- Set the model .
- Set relation name .
- Get soft cascade .
- Boot the application .
- Handle the event .
- Returns the model .
- Returns the relation .
laravel-soft-cascade Key Features
laravel-soft-cascade Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-soft-cascade
QUESTION
Firstly, I've already read other similar questions both on StackOverflow and others. Please read what I have to say before redirecting me to other solved issues :)
I was using passport as detailed in the official documentation of Laravel so that my js app could use my Laravel API using the access token set in the cookie created by the CreateFreshApiToken class. I had no problem, even using it to access GraphQL queries (I had to change apollo-client to Axios to achieve this. For a reason I didn't understand, apollo didn't send the cookie).
The problem is that I ran composer install and Laravel updated from 6.x to 8, so everything broke. After many trys to solve it, I decided to rollback to Laravel 6.x and everything worked again, except CreateFreshApiToken class...
Now, Axios keeps using the cookie, but the backend isn't responding as expected, because its behavior is like it hasn't received any cookie and therefore middleware response is 'unauthenticated'.
I can sightly guess that some dependencies have something to do with this if they weren't rolled back well to their original state. Whether this assumption is right or not, I still think the solution is to adopt some code to the current state of my dependencies.
The issue has nothing to do with Passport itself because if I test a request explicitly using the access_token obtained, it works well.
EDIT: I successfully checked in server side the cookie is included in the request.
Project info
Laravel framework 6.20.27 php 7.3.4 node v14.17.0
Related code:
Kernel.php
...ANSWER
Answered 2021-May-24 at 20:30Finally, this issue was solved updating passport to 9.x
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-soft-cascade
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page