Skip to content

response()->next() may return $this for chaining #314

@Serge-45

Description

@Serge-45

Using Leaf 4.0 / http 4.2

Is your feature request related to a problem? Please describe

Many of the response() methods return $this, and this allows to chain :

response()->withFlash('debug','xxx')->page('xxx'); 

This is not possible with next() which returns nothing.

Describe the solution you'd like

response()->next('xxx')->withFlash('debug','xxx')->page('xxx'); 

Describe alternatives you've considered

Obviouly, the calls may be split over several lines :

response()->next('xxx');
response()->withFlash('debug','xxx')->page('xxx'); 

References

Http\Response

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions