Relative Content

Tag Archive for reactjslaravelinertiajs

delay to update in components using usestate in Inertia React js

please help.
i still confuse why i got delay when update the button color when i click the colors.
if i see the console.log when i click the button, it has no delay, but when it update to colors, it got delayed.
let me show you the code,
here is the code for button :

How to deploy laravel 11 + react(inertia) in cpanel? can anyone help me

I am working on a web application using Laravel 11 and React with Inertia.js for the frontend. I have completed the development locally and now need to deploy it to a live server using cPanel. However, I am facing several issues and am unsure of the correct steps to follow for a smooth deployment process. Specifically, I am encountering problems with setting up the environment, managing dependencies, configuring the server, and ensuring that both the Laravel backend and React frontend work seamlessly together. Can anyone provide a detailed, step-by-step guide or advice on how to successfully deploy my Laravel 11 + React (Inertia) application on cPanel?

Creating api request on Laravel with Inertia

I am currently using laravel 11.x with react Inertia. I want to make auth protected api routes for mobile app. Inertia does not give auth middleware for api. Its uses token authentication.

Form reloads when an image is being submitted

I am using Laravel with React Inertia.
In the profile and user update page, user can update their User, Profile infos and profile Picture. when users changes Profile/User infos, it works but when user tries to change the DP, it reloads and does nothing. I believe the problem is with the form and it’s not taking any image file.
in short, the image file is not uploading at all!!!!!