laravel with inertiajs - practice i just used for inertia projects to prevent repetitively executing inertia share method
image : https://unsplash.com/photos/TNO9gxHhhj0 Hello guys , i just thought to share my little experience in inertia js. inertia js(https://inertiajs.com/) getting quite popular with laravel now. I had develop web project with inertia js. its easy and handle lot of Ajax tasks through the package. this helped lot to create single page like application. but i faced issue is , there is a middlware calllded 'HandleInertiaRequests' and it have method callded 'share' . this share method calling every time we running a request through inertia service . I had created some sql query running tasks in this 'share' method, for update UI according to the updated data. things worked normally. Later I had created some ajax calling with separate routes which have their own tasks to update ui. but that not connected with inertiajs. but when I checking that ajax requests with "laravel debugbar" I saw there are lot of query executing for a little ajax call. how posb...