1,296 questions
-1
votes
1
answer
253
views
Rails and Inertia.js How to Implement POST Request
I have a Rails 8 application which is using Inertia.js and Vue. I am not sure how to implement a redirect_to() request using Inertia.js within Rails. My attempts are not working. I am using https://...
1
vote
1
answer
182
views
Laravel Cashier (Paddle): Not Storing Transactions & Subscriptions
I am using Laravel 12.x with Inertia, React, Typescript, WorkOS Auth, and Cashier (Paddle).
With my current implementation I can get the checkout overlay to open and process payment, but in my ...
1
vote
3
answers
509
views
Set CSRF/XSRF token with laravel + react
I'm trying to learn and build a backend using Laravel 12, it comes with inertia that allows me to manage my auth tokens and CSRF token for a React app, but based on my understanding it's for the React ...
0
votes
1
answer
33
views
How to get value of current page in setup method of inertiajs 3 app?
In which way can I in laravel 10 / inertiajs 3 app get value of current page, whe using pagination and url like :
http://127.0.0.1:8000/?page=3'
?
I tried window.location - has data:
href: 'http://...
0
votes
1
answer
82
views
How in laravel / inertiajs app use pagination component?
On laravel 10 / inertiajs 2 I have list of products :
class HomeController extends Controller
{
public function index(Request $request)
{
return Inertia::render('Home/Index', [
...
0
votes
1
answer
276
views
Laravel 10 / Nova 4 - Inertia requests must receive a valid Inertia response
I have been racking my brains for days over this problem and could not fix it yet. I would be so appreciate if someone could help me!
# Current Environment (Local Docker)
"php": "8.1&...
0
votes
0
answers
91
views
Laravel Vue/Inertia 403 server error with Inertia.get()
I am tearing out my hair with this one. Using Inertia with Vue in Laravel and whenever the Inertia.get() is used, a 409 server error is returned before refreshing/redirecting to the desired the page. ...
0
votes
2
answers
350
views
Inertia preserve scroll and scroll-region not working properly
So i have simple page with sidebar and main content area. I'm not sure what i'm doing wrong but for some reason inner content of sidebar is not preserving its own state and scroll position. Scroll ...
0
votes
0
answers
23
views
InertiaJS Global Param
I have a project that uses Laravel + Vue3 + Inertia, and I need to add a new parameter to all URLs before making requests. Previously, the URL was domain.com/admin/users, but now it should be domain....
0
votes
0
answers
97
views
Vue 3 Component in Blade File
I have a vue 3 component that I want to use inside a blade file. is there a way to do that? I am using Laravel 11, inertiajs v2 and Vue 3
I tried registering the component as a global component but it ...
0
votes
0
answers
60
views
Persistent Layouts in Inertiajs
I am trying to use Persistent Layouts in InertiaJS and Laravel with Vue3. But I get a compilation error by Vite:
[vite] Internal server error: Codegen node is missing for
element/if/for node. Apply ...
1
vote
1
answer
216
views
How to make Vue DevTools work with inertia-vue3?
Normally, Vue DevTools work on my Vite projects, but I'm struggling with inertia. I've added NODE_ENV=development to .env and vueApp.config.devtools = true to:
createInertiaApp({
title: (title) =>...
1
vote
1
answer
330
views
Laravel/Inertia js/React js PUT Request Form Data Not Fully Received on Update When Including Image Upload
I'm facing a strange issue in my Laravel Inertia.js project. I can successfully create new 'Ville' resources, including image uploads. Updates also work fine if I don't upload a new image. However, ...
0
votes
0
answers
72
views
Post After 303 or 302 returns 404
I've been having a interesting bug that I cannot seem to track down the cause of when I perform a Post Patch Put, or Delete to a given route in this case '/parts/bulk' the first submit goes through ...
0
votes
1
answer
208
views
Why I got npm error under custom component?
In laravel 11 app I have a custom component , which use inertia js and when running npm under I got error:
master@master-at-home:/var/www/Project/components/laravel-custom-main$ npm run dev
> dev
&...
1
vote
0
answers
108
views
How to load a vuejs build into another vuejs?
I made a SPA with laravel + vuejs3 (inertia).
My SPA works without worries, but I made a module that is on several sites (WP) which is a js file that loads on a tag with the id="form".
It ...
0
votes
0
answers
56
views
How can I get antd and inertia SSR working?
I'm working on an application that requires the antd framework, but when using SSR, it doesn't integrate well during compilation. I don't want to see flickering or rearranging of styles. The official ...
1
vote
1
answer
172
views
How to use ngrok with Laravel Breeze (Inertia + Vue.js) when using two different ports?
I am working on a Laravel(v9) Breeze project using Inertia.js and Vue.js. My project runs on two different ports:
Laravel backend (php artisan serve) → http://localhost:8000
Vue.js frontend (npm run ...
0
votes
3
answers
78
views
How to configure a route With InertiaJs/ Laravel
I am developing a website and testing the logout functionality. The issue I'm facing is with the Navbar, which is extended across multiple components and allows users to log out of the website. The ...
0
votes
1
answer
41
views
Laravel withCount elements in related and subrealted table
I'm building application with Laravel, Inertiajs and Vue3.
There are three key tables in application: Operators, Locations and Terminals. Terminals belongs to Locations and Locations belongs to ...
0
votes
1
answer
72
views
Session keeps renewing when checking the status
In my laravel/inertia/vue application I'd like to check if the session is expired or not. If the session has expired, a popup should be displayed. The check is done by making a call to the backend. I'...
-1
votes
1
answer
50
views
InertiaJS: keep current component
I can't wrap my head around how InertiaJS works...
I am using a vanilla PHP backend solution, so all the magic revolving around frameworks like Laravel can't help me.
I would like to submit a form (...
0
votes
0
answers
59
views
Laravel POST request not reaching controller with Inertia.js [duplicate]
I'm pretty new to Laravel and I'm encountering an issue when following this video (https://www.youtube.com/watch?v=Q6SO5bV5DLk&list=PL38wFHH4qYZVOnXxcS0NMGGmUsZky6JNG&index=9)
When I submit a ...
1
vote
1
answer
64
views
How to fix the flickering of GET parameters in the address bar?
Flickering of parameters in the address bar (Laravel Jetstream + Vue)
When I generate a URL like this:
http://localhost/admin/users/list?page=2&field=name&direction=asc
and navigate to it, I ...
0
votes
1
answer
93
views
How to trigger IntertiaUI modal from a Laravel controller
I am using InertiaUI modal: https://inertiaui.com/inertia-modal/docs/introduction for my Vue3 application.
It works fine from the front end when I use the ModalLink and Modal provided by InertiaUI:
&...
0
votes
0
answers
33
views
Run simple Python script in existing Laravel11/Vue/Inertia application - 404 Not Found
I have an existing Laravel 11, Vue and Inertia application that is all up and running with logins and other vue pages. I'm just trying to add a simple Python script to one of the vue pages. Here is my ...
0
votes
1
answer
338
views
Form Validation Responses with Inertia and Laravel 11
I'm having a form like:
<form @submit.prevent="submitForm">
<div>
<span v-if="form.errors.zipCode">{{ form.errors.zipCode }}</span>
<...
1
vote
1
answer
146
views
Vite, VueJs, Inertia, SSR and dynamic javascript package loading
I am using
Laravel 10
@inertiajs/[email protected]
inertiajs/inertia-laravel v2.0.0 The Laravel adapter for Inertia.js.
Vite v5.4.11
@vitejs/[email protected]
@splidejs/[email protected]
I am trying to ...
1
vote
0
answers
189
views
Node.js/Vite SSR: ERR_UNSUPPORTED_DIR_IMPORT with @mui/material/utils during Inertia.js SSR
I'm encountering an ERR_UNSUPPORTED_DIR_IMPORT error during server-side rendering (SSR) with Vite, React, MUI (Material UI), and Inertia.js. The specific error message is:
Error [...
0
votes
1
answer
63
views
Applying the page state when the user gets redirected to an already visited Page
My index method lists all users:
return Inertia::render('User/List',[
'entries' => fn() => User::all(),
]);
The vue component to display the list has a button to create a new user.
<...
-1
votes
1
answer
124
views
how to globally import packages in vue3 & inertia & vitejs
im using laravel, vue3, vitejs and inertia to create my app
my problem is: when i import my packages (like sweet alert) globally in my app.js, i will get error like Uncaught (in promise) ...
2
votes
0
answers
226
views
How to Resolve 409 Conflict with InertiaJS on Login Redirect in Laravel?
I'm encountering a 409 Conflict error when trying to redirect a user to the dashboard after a successful login in my Laravel + InertiaJS application. I've tried several approaches, but the issue ...
0
votes
1
answer
182
views
Laravel Inertia.js, flash messages dissapearing
I'm trying to implement flash messages upon a redirect. I added
'flash' => [
'message' => fn () => $request->session()->get('message')
],
to the ...
0
votes
0
answers
522
views
currentRenderingInstance.ce is null when rendering Vue compoments with Inertia in production
I'm using Laravel 11 and Inertia.js with Vue to build a multi page web application. I use Coolify with nixpacks to deploy my application on a server.
When making a request, the server always returns a ...
0
votes
0
answers
47
views
How to deploy Laravel (with react) app on heroku without any error (like 419 error)
I just create laravel app with staterkit (breeze) and i am using (react) inertiajs for frontend. I pushed the code to Heroku, it's showing error 419 while register and login. I haven't even started ...
0
votes
1
answer
63
views
The update and destroy parameters cannot be used in CRUD Laravel 11
I have a problem when editing my CRUD. When I click edit on my index.tsx page, I can't display the data stored in the database for editing and can't be deleted, how is the solution?
Here's the route ...
1
vote
0
answers
110
views
Confirm Selection in tanstack react-table
I have a row selection implemented on my tanstack react table, it is working fine, but there is one thing, i want to add a state that tells me if the user confirms deletion dialog button, and use it ...
-1
votes
1
answer
121
views
How to properly redirect between different views in Laravel & Inertia with multiple React instances?
I am working on a Laravel web application with two distinct user interfaces: one for admin users and another for portal users. To manage these interfaces, I have created two separate React instances ...
0
votes
0
answers
44
views
Error in notification removal success but the data is not removed on the backend
I don't know, why is the error where the notification status remove success but the data in the backend failed. (my frontend use react inertia js and backend use express js).
My Frontend
this my code ...
0
votes
0
answers
69
views
Getting update and delete working in Laravel 11 Inertia and Vue
I can't get the update and delete functionality working. The create functionality works.
web.php:
Route::post('/income', [IncomeController::class, 'create']);
Route::put('/income/{id}', [...
0
votes
2
answers
66
views
How to get query parameter values in laravel + Intertia Vue?
How to access to the query parameters in laravel + inertia vue js.?
<script>
export default {
computed: {
reference() {
return this.$page.props.query.reference || 'No reference ...
0
votes
1
answer
184
views
Property auth is missing but required in pageProps (Inertia)
I am working with Inertia and laravel. But I am stuck at this point. I am not sure why this error is coming. If anyone knows the solution to this. Please help me get rid of this error.
export ...
0
votes
1
answer
62
views
UseEffect and SetInterval, creating infinite loop and refreshing the session
I want to keep making my request because whenever I add an item to my cart, the carticon which displays the amount of items in the cart has to update. But this keeps refreshing my session, so when I ...
2
votes
0
answers
234
views
Is it necessary to include Ziggy with the HandleInertiaRequests?
I'm new to SSR with InertiaJs. I installed Breeze scaffolding with Inertia supporting SSR.
I found below lines in HandleInertiaRequests.php
'ziggy' => fn() => [
...(new Ziggy)->toArray(),
...
0
votes
0
answers
53
views
Laravel Vue Inertia How to accept data from a checkbox and store it in the database?
It will read from the database and put an appropriate check in the checkbox (or leave it blank), but I can't get it to update the database when the user checks a checkbox. The other fields work, they ...
0
votes
2
answers
69
views
Laravel's ORM query using with() not working with paginate()
I am grabbing the related meetings with each Department, hence I would like to have a pagination for each meetings list. I currently have this in my Inertia Middleware to have it available in my ...
0
votes
1
answer
78
views
How to preserve scroll in vue form with inertia
How do I get preservescroll working on a form? It works for the delete functionality with the Link but I can't get it to work on the form or the div.
<template>
<form @submit.prevent=&...
2
votes
0
answers
174
views
FOUC With inertiajs (SSR), Vite and SCSS
I am building an application using Laravel, inertiajs (SSR), Vite, Vue 3, and SCSS
I have pages and component and each page/component has its own style file and it is imported inside of this page/...
0
votes
1
answer
453
views
Laravel Inertia.js SSR Error: “All Inertia requests must receive a valid Inertia response”
I’m trying to deploy a Laravel application using Inertia.js with server-side rendering (SSR). However, when I navigate between links, I encounter the following error:
All Inertia requests must receive ...
0
votes
2
answers
134
views
How do I make default option show up in dropdown menu with vue/inertia?
I am using Inertia, Vue3 and Laravel and I can't seem to get a dropdown menu to autopopulate with the first option. It is just blank. This is my code:
<template>
<form @submit....