dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Cannot use [Class, 'action'] instead 'Calss@action' in routes #1660

Closed zolotov88 closed 5 years ago

zolotov88 commented 5 years ago
Q A
Bug? yes
New Feature? yes
Framework Laravel
Framework version 5.8.18
Package version 1.2.3
PHP version 7.3.4

Actual Behaviour

Rote $api->post('signup', ['as' => 'signup', 'uses' => [AuthController::class, 'signUp']]); is not working. Rote $api->post('signup', [AuthController::class, 'signUp']); is not working

Expected Behaviour

Expecting that it can work like laravel routes

specialtactics commented 5 years ago

Because Dingo uses it's own router, not everything that Laravel supports is available in Dingo.

Not going to address this because before too long the routing will be re-done anyway.