1,295 questions
0
votes
1
answer
130
views
Laravel VILT Stack, Inertia Shared Data
I'm working on my first VILT stack project, a T-shirt store where customers can add items to a cart. The cart is stored in the session and shared with the frontend using the HandleInertiaRequests ...
0
votes
2
answers
286
views
React-Laravel-Inertia V2.0 Pagination with Collections
I have a problem with a Laravel/React/Inertia V2.0 application. I want to implement some infinite scrolling pagination. There is the new Inertia::merge() accessor, that helps merging paginated content....
0
votes
0
answers
55
views
vue-router history mode flexible for non-ssr and ssr mode
I am first time developing a laravel - Inertia - Vue App and am doing y first steps with SSR.
At the moment during setup of the router I create a WebHistory which obviously isn't suited for SSR ...
0
votes
1
answer
601
views
Laravel not processing FormData in a PUT request
I'm facing an issue while trying to send a PUT request with FormData in Laravel using Inertia. I need to update a user, but the PUT request seems to be ignored, and Laravel is not processing the ...
0
votes
1
answer
99
views
Laravel 11 Inertia Vue making an edit that doesn't take user to another page
I'm pretty new to this and it seems there are so many pages and teachers that make the Edit function its own page, but I want to do it on the same page so the user can just edit it while seeing ...
0
votes
1
answer
458
views
"getActivePinia()" was called but there was no active Pinia
I get the following error in the command line when having ssr-started (laravel 11 + vue + inertia) and trying to navigate after php artisan Inertia:start-ssr and after npm run build:
The server starts ...
0
votes
1
answer
77
views
Svelte SSR: Why is writable store data being retained across multiple requests?
I am developing an application using Laravel, Inertia and Svelte. It's currently running SSR.
Here's a simple code snippet that I use to set up the <title> tag in the <head> section, using ...
0
votes
1
answer
178
views
How to access auth user in inertial react
I want to access the auth user to my navigation page, How to do this in inertia react?
this code works for Vue but doesn't work in react js
$page.props.auth.user
thanks
0
votes
0
answers
466
views
How to enable Inertia SSR on production?
I'm using Laravel Inertia with Vue.3 to build an SSR app.
My app is working well but the SSR is not working at all. When I disable javascript on my browser, I get a blank page.
I deployed my app on a ...
0
votes
1
answer
69
views
How to display the raw html response from API in react-data-table-component
I have to display the raw HTML in the react-data-table-component. I have raw HTML which is coming from API, now I want to display that HTML in react-data-table-component.
const columns = [
{ ...
2
votes
0
answers
193
views
Is it possible to install Laravel Jetstream with Typescript?
Is it possible to install Laravel Jetstream with Typescript instead of Javascript when you are installing it with Inertia/Vue?
I saw that they have it with Breeze but I can't find it for Jetstream.
If ...
3
votes
0
answers
159
views
Laravel - Error 502 "Bad Gateway" when using a email:dns validation
I use Laravel (v9.52.16) with Inertia.
In front-end (Vue.js) I have an email field and in back-end (PHP 8.1.22) I do validations. I use RFC and DNS validationsto authorize only valid emails with valid ...
0
votes
1
answer
75
views
Laravel authorization returns 403 even if policy returns true
I'm using Laravel 11, Vue 3 and InertiaJS.
I'm trying to get authorization to work but it keeps returning 403 even if the policy returns true.
The Inertia Link conditionally shows (successfully so) ...
-1
votes
1
answer
365
views
Laravel Inertia.js React SSR Vite Nginx Gzip configuration
It's a day that I'm working on optimizing my webpage to use Inertia SSR and Gzip correctly
from how to change the Vite config to how the Nginx config should be.
Now I love to share the configs here
so ...
0
votes
1
answer
706
views
XSRF Token missing from POST request after deployment to Cloud Run
Using Laravel 11, Inertia & React -> Docker Image -> Cloud Run
After opening the app on / I get redirected to /login as expected.
Inspecting the network requests up to that point, X-XSRF ...
2
votes
1
answer
95
views
Why Aren't File Uploads (Banner, Images, Slider) Working in Laravel with React and Inertia.js?
Context
I'm developing a Laravel application with React (using Inertia.js) where users can update "achievements". These achievements include a banner image and a description section that can ...
0
votes
1
answer
71
views
Error: Cannot read properties of "undefined" variable (vue/Inertia) got from props
Here is a part of the page code (beginning):
<script setup>
import { reactive } from 'vue'
import { Link } from "@inertiajs/vue3";
defineProps({
post: Array
});
const form = ...
0
votes
1
answer
578
views
Uncaught TypeError: Function has non-object prototype 'undefined' in instanceof check
I am struggling with this error that happens only when "vite build" is ejecuted (npm run build), but it does not happen when "npm run dev" in my local.
These is all I did at the ...
1
vote
1
answer
711
views
Issue with Missing broadcasting/auth Route After Installing Reverb and Inertia.js in Laravel 11
I'm working on a Laravel 11 app where I want to use Laravel Reverb for WebSockets. However, I'm encountering an issue with the broadcasting/auth route. Here's the situation:
#1. Fresh Laravel ...
1
vote
0
answers
149
views
InertiaJS router.get request with params not preserving state: always full refreshing page
In the docs, we can find:
State preservation
...
You can instruct Inertia to preserve the component's state when using the get method by setting the preserveState option to true.
router.get('/users', {...
0
votes
2
answers
816
views
this.resolveComponent is not a function
I'm building an application with Laravel + React. I use Inertia.js to combine the two. The project was generated through Vite.js, which is also used.
I now have built a table, which is responsive so I ...
0
votes
1
answer
42
views
Pagination Laravel VueTailwindPagination
i cant undesrtand why when i use the tag for the pagination , i cant retreive anything...
In the controller:
$departments = Department::select('name')->paginate(5);
return Inertia::render('...
2
votes
1
answer
210
views
DOMException: Failed to execute 'replaceState' on 'History' when using form.post in inertia
I am trying to implement infinite scroll using useIntersectionObserver. Everything works fine, not until after I scroll, then submit a post, the error occurs.
Error
DOMException: Failed to execute '...
2
votes
0
answers
162
views
How to filter Ziggy routes injected into InertiaJS based on user permissions in Laravel?
I'm working on a Laravel project using InertiaJS and ReactJS. To inject routes into my frontend, I'm using Ziggy routes. However, I also have the Spatie/Laravel-Permissions package installed.
The ...
0
votes
0
answers
43
views
Why does a tailwind breakpoint affect another unrelated component?
I have a VueJS frontend with tailwindCSS. There is a component that's used twice in the page.
<ApplicationLogo class="h-16 w-auto" />
and
<div class="hidden lg:block">
...