We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in this code when i scan route, that make some routes for all of resource http verbs, for example:
resource
/** * Class AdminController * @package App\Http\Controllers\Backend * @Resource("/post") */
routes.scanned.php contains:
routes.scanned.php
<?php // Resource: /post@index $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['index'], 'names' => []]); }); // Resource: /post@create $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['create'], 'names' => []]); }); // Resource: /post@store $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['store'], 'names' => []]); }); // Resource: /post@show $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['show'], 'names' => []]); }); // Resource: /post@edit $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['edit'], 'names' => []]); }); // Resource: /post@update $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['update'], 'names' => []]); }); // Resource: /post@destroy $router->group(['middleware' => [], 'prefix' => NULL, 'where' => [], 'domain' => NULL], function() use ($router) { $router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController', ['only' => ['destroy'], 'names' => []]); });
that should be only one router:
$router->resource('/post', 'App\\Http\\Controllers\\Backend\\AdminController');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in this code when i scan route, that make some routes for all of
resource
http verbs, for example:routes.scanned.php
contains:that should be only one router:
The text was updated successfully, but these errors were encountered: