Replies: 2 comments
-
|
I'm using Invokable Controller and it works as expected. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@osbre that would obviously work but not what I am talking about. If a controller is invokable, adding something like this should also work: #[Get('something')]
class SomeController extends Controller
{
public function __invoke()
{
return response()->json([]);
}
}This just looks cleaner and easily attainable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions