1,296 questions
-1
votes
0
answers
32
views
When client opens it from browser history it opens JSON return not a component [closed]
I have problem with all Inertia projects. When the user opens the page from their browser history it opens a JSON not a React page.
How can I prevent this? I have:
"dependencies": {
&...
0
votes
0
answers
34
views
Using a prop in an import statement in Vue, using Laravel and Inertia?
I'm trying to dynamically load only specific icons from the lucide-vue-next package in my vue page, however it's not wanting to work. I'm using Laravel 12 (Latest), Vue3 (Latest shipped with Laravel), ...
Best practices
0
votes
2
replies
51
views
Best approach to make a form with multiple models with laravel inertia and react
I'm currently learning inertia with react after using livewire and finding myself quite limited so I'm making a sample project that makes invoices to practice making forms and saving data to a ...
0
votes
0
answers
45
views
How to correctly set up Pinia with Inertia.js SSR in AdonisJS 6? Getting "getActivePinia() was called but there was no active Pinia"
I am building an application using AdonisJS 6, Vue 3, and Inertia.js. I'm trying to integrate Pinia for state management, but I'm running into an error:
I read online and see other issues here, but I ...
0
votes
0
answers
69
views
Why notification is not called when data are saved and redirected to other page?
On laravel/vue/inertiajs/element-plus site I make notification when data are saved and redirected to other page
public function update(TaskRequest $request, int $taskId)
{
\Log::info( '-1 ...
0
votes
0
answers
108
views
I got syntax error on installing typescript with laravel-data package
Reading https://spatie.be/docs/laravel-data/v4/advanced-usage/typescript docs
I try to add laravel data package on laravel/vue/element-plus site and adding app/Data/TaskAdminData.php class with code :
...
3
votes
1
answer
135
views
Getting 401 Unauthorized when calling Laravel Sanctum API after Inertia login (React + Laravel)
I'm using Laravel 11 with Jetstream (Inertia + React) and Sanctum for authentication.
Everything works fine when logging in via the default Inertia login page, but when I try to call a protected API ...
0
votes
0
answers
54
views
How selecting some select option element to run filtered request on server?
On Laravel/Vue/Element Plus, site I make filter with some filters in control and in table of Vue file :
class TaskController extends Controller
{
public function __construct()
{
}
/**...
0
votes
1
answer
65
views
How to show Laravel session flash messages in Vue component using Inertia?
I’m using Inertia.js with Vue 3, and I want to show a success message when a form is submitted successfully.
In my controller I have:
public function store(Request $request)
{
$validated = $...
0
votes
0
answers
35
views
Laravel + Imagick: Thumbnails return 0×0 images in browser despite valid 200 response
I’m building a Laravel + React (Inertia.js) application where users can upload files (PDFs, images, etc.).
For each file, I generate a thumbnail so I can display it in a gallery card (CardFile.jsx).
...
-3
votes
1
answer
123
views
Is it possible to use the "/" route for a controller in Laravel with Inertia? [closed]
What I want to set up in .\routes\web.php is something like
Route::resource('/main', CallController::class);
So, if user goes to www.sitename.com/, the index of CallController should be executed and ...
0
votes
1
answer
121
views
Getting "page over page" problem in laravel 11+ using inertia react for frontend
I have been struggling with this error for 2 weeks. Project setup is basically simple:
docker-compose for building app, redis and mariadb containers
nginx on production server for serving app and ...
0
votes
0
answers
94
views
Laravel reverb/echo useEchoPublic callback not triggering
I have a feeling I'm doing something very stupid but I cannot get the callback on useEchoPublic to fire no matter what I try
The event is structured like so, this is pulled straight from the browser ...
1
vote
1
answer
89
views
How to access asset files when using Laravel and React with Inertia?
My app uses Laravel as backend, and React as a frontend solution with Inertia as intermediary.
The idea is to load .wav files from media storage (say /storage/app/audio) to let users playback phone ...
1
vote
1
answer
43
views
Inertia routes return 404 (Not Found) for app deployed in subfolder
I have deployed a Laravel 12 + Inertia.js (React) app on a shared hosting (cPanel).
The app is located in a subfolder: https://mydomaine/app/.
Authentication routes like:
https://mydomaine/app/login
...