You can return Inertia responses for all the standard controller methods by extending the TranquilInertiaController
1class CarController extends TranquilInertiaController {}
Now all the endpoints will return an Inertia
response to the corresponding component path.
1/cars .............. resources/js/Pages/Cars/Index2/cars/create ....... resources/js/Pages/Cars/CreateEdit3/cars/{car} ........ resources/js/Pages/Cars/Show4/cars/{car}/edit ... resources/js/Pages/Cars/CreateEdit