first push

This commit is contained in:
2020-09-11 16:26:01 +08:00
commit fd2e97e190
1455 changed files with 358156 additions and 0 deletions

27
routes/web.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
Route::group([
'namespace' => 'App\Http\Controllers',
], function (Router $router) {
$router->get('/', 'IndexController@index')->name('index');
$router->get('articles/{article}', 'ArticleController@show')->name('article.show');
$router->get('category/{category}/show', 'CategoryController@show')->name('category.show');//显示分类
});