If you're building an Inertia.js app, use TranquilInertiaController, which mixes in InertiaResponses to render Inertia pages for each resource response.
1use Tranquil\Controllers\TranquilInertiaController;2 3class CarController extends TranquilInertiaController {4 protected string $modelClass = Car::class;5}
Override paths via public properties on the controller:
1public string $componentPathPrefix = 'Admin/Cars';2public string $indexPath = 'Admin/Cars/Index';3public string $createPath = 'Admin/Cars/CreateEdit';4public string $showPath = 'Admin/Cars/Show';5public string $editPath = 'Admin/Cars/CreateEdit';