We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST http://127.0.0.1:8000/follow/2 500 (Internal Server Error)
i have this error when i try to
`methods: { followUser() { axios .post("/follow/" + this.userId) .then((response) => { this.status = !this.status;
console.log(response.data); }) .catch((errors) => { if (errors.response.status == 401) { window.location = "/login"; } }); }, },`
i think i have a problem with axios
The text was updated successfully, but these errors were encountered:
I am having the same issue. Did you ever find a resolution to this?
Sorry, something went wrong.
<follow-button user-id="{{ $user->id }}" follows="{{ $follows }}" v-show="{{ $user->id !== $profile->id }}"></follow-button>
methods: { followUser() { axios .post("/follow/" + this.userId) .then(response => { this.status = !this.status; console.log(response.data); }) .catch(errors => { if (errors.response.status == 401) { window.location = "/login"; } }); } },
Doing the following fixed the issue for me:
Make sure to include this in the top of your FollowsController.php.
use App\Models\User;
No branches or pull requests
POST http://127.0.0.1:8000/follow/2 500 (Internal Server Error)
i have this error when i try to
`methods: {
followUser() {
axios
.post("/follow/" + this.userId)
.then((response) => {
this.status = !this.status;
i think i have a problem with axios
The text was updated successfully, but these errors were encountered: