<commit_before><?php

use Illuminate\Routing\Router;

$router->model('menus', 'Modules\Menu\Entities\Menu');
$router->model('menuitem', 'Modules\Menu\Entities\Menuitem');

$router->group(['prefix' => '/menu'], function (Router $router) {
    $router->resource('menus', 'MenuController', [
        'except' => ['show'],
        'names' => [
            'index' => 'admin.menu.menu.index',
            'create' => 'admin.menu.menu.create',
            'store' => 'admin.menu.menu.store',
            'edit' => 'admin.menu.menu.edit',
            'update' => 'admin.menu.menu.update',
            'destroy' => 'admin.menu.menu.destroy',
        ],
    ]);

    $router->resource('menus.menuitem', 'MenuItemController', [
        'except' => ['show'],
        'names' => [
            'index' => 'dashboard.menuitem.index',
            'create' => 'dashboard.menuitem.create',
            'store' => 'dashboard.menuitem.store',
            'edit' => 'dashboard.menuitem.edit',
            'update' => 'dashboard.menuitem.update',
            'destroy' => 'dashboard.menuitem.destroy',
        ],
    ]);
});<commit_msg>Use manual route definition over the route resource shortcut<commit_after><?php

use Illuminate\Routing\Router;

$router->model('menus', 'Modules\Menu\Entities\Menu');
$router->model('menuitem', 'Modules\Menu\Entities\Menuitem');

$router->group(['prefix' => '/menu'], function () {
    get('menus', ['as' => 'admin.menu.menu.index', 'uses' => 'MenuController@index']);
    get('menus/create', ['as' => 'admin.menu.menu.create', 'uses' => 'MenuController@create']);
    post('menus', ['as' => 'admin.menu.menu.store', 'uses' => 'MenuController@store']);
    get('menus/{menus}/edit', ['as' => 'admin.menu.menu.edit', 'uses' => 'MenuController@edit']);
    put('menus/{menus}', ['as' => 'admin.menu.menu.update', 'uses' => 'MenuController@update']);
    delete('menus/{menus}', ['as' => 'admin.menu.menu.destroy', 'uses' => 'MenuController@destroy']);

    get('menus/{menus}/menuitem', ['as' => 'dashboard.menuitem.index', 'uses' => 'MenuItemController@index']);
    get('menus/{menus}/menuitem/create', ['as' => 'dashboard.menuitem.create', 'uses' => 'MenuItemController@create']);
    post('menus/{menus}/menuitem', ['as' => 'dashboard.menuitem.store', 'uses' => 'MenuItemController@store']);
    get('menus/{menus}/menuitem/{menuitem}/edit', ['as' => 'dashboard.menuitem.edit', 'uses' => 'MenuItemController@edit']);
    put('menus/{menus}/menuitem/{menuitem}', ['as' => 'dashboard.menuitem.update', 'uses' => 'MenuItemController@update']);
    delete('menus/{menus}/menuitem/{menuitem}', ['as' => 'dashboard.menuitem.destroy', 'uses' => 'MenuItemController@destroy']);
});
{'fraction_non_alphanumeric': 0.23337049424005946, 'fraction_numerical': 0.0, 'mean_word_length': 3.885662431941924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6473479', 'n_tokens_mistral': 831, 'n_tokens_neox': 889, 'n_words': 124}