<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

//Route::get('/', 'IndexController@index')->name('home');

/**
 * 分组的路由示例
 */
Route::group([
//    'as'         => '',
//    'domain'     => '',
//    'middleware' => '',
//    'namespace'  => '',
//    'prefix'     => '',
], function (Router $router) {
    $router->get('/', 'IndexController@index')->name('home');
});

/**
 * 文件夹引入的示例
 */
//foreach (glob(app_path('Api/Routes') . '/*.php') as $routeFile) {
//    require $routeFile;
//}