-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get current controller and method #62
Conversation
Could you add a/some unit tests for this please? An example of what happens when using the method from a routed closure would also be interesting :) Thanks! |
Also shouldn't it be |
Specifically at vendor/laravel/framework/src/Illuminate/Support/helpers.php functions names are still in snake_case. |
Would love to but I have to admit that I could need some help ;) |
This took me like 3 hours, first tests I ever wrote :o @daylerees Will find your example in tests :) |
👍 This is really a missing feature! |
+1 |
2 similar comments
+1 |
👍 |
+1 |
@asmerkin This was already implemented.... Route::currentRouteAction() |
Thanks |
Sorry, but i can't execute that method. It seems not to be in Laravel 4 and it's not in the api docs. |
it's Route::currentRouteAction() in Laravel 4 👍 |
…tion-budget-request Update Organization Budget request
Removed redundant Encryption Key section
Simple helper to get the current action like "Controllers\Home@getIndex".
Going to return null if function called on non-controller request.