text4u
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

web.php 807B

123456789101112131415161718192021222324
  1. <?php
  2. use App\Http\Controllers\AdminController;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider and all of them will
  11. | be assigned to the "web" middleware group. Make something great!
  12. |
  13. */
  14. // Route::statamic('example', 'example-view', [
  15. // 'title' => 'Example'
  16. // ]);
  17. Route::get('/admin/login', [AdminController::class, 'showLoginForm'])->name('admin.login');
  18. Route::post('/admin/login', [AdminController::class, 'login']);
  19. Route::get('/admin/dashboard', [AdminController::class, 'dashboard'])->name('admin.dashboard');