Tranquil Inertia Controller

Introduction

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/Index
2/cars/create ....... resources/js/Pages/Cars/CreateEdit
3/cars/{car} ........ resources/js/Pages/Cars/Show
4/cars/{car}/edit ... resources/js/Pages/Cars/CreateEdit

Endpoints

Index

Create

Show

Edit