Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

short method references #2

@olivernybroe

Description

@olivernybroe

So in PHP we can make a method reference by using this syntax right now

Route::get('users', [UserController::class, 'index']);

I propose that we add a short method reference syntax like so

Route::get('users', UserController::index);

Metadata

Metadata

Assignees

No one assigned

    Labels

    rfcNew proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions