Skip to content

Refactor InertiaResponse to Component #19

@NeoIsRecursive

Description

@NeoIsRecursive

I think this would be more aligned with tempest and would allow users to do either:

#[Get('/login')]
public function loginView(): Component {
   return inertia('auth/login');
}
// or
#[Get('/register')]
public function registerView(): Component {
    return new Component('auth/register', props: [...])
}

I'm not sure if this is possible yet, but I think it would make this more tempesty, (new Json(), new Forbidden() etc)

Metadata

Metadata

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions