# Routes

On this page

The routes are defined in the routes/web.php file.

The following routes are defined in the routes/web.php file:

  • / loads index.blade.php view file.
  • /docs redirects to /docs/v1/introduction to change the default version of view change the redirect path.
  • docs/{path} loads the markdown file from the resources/docs directory.
  • become-a-sponsor loads the become-a-sponsor.blade.php view file.
<?php

use App\Http\Controllers\PageController;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('index');
});

Route::get('docs', function () {
    return redirect('docs/v1/introduction');
});

Route::get('docs/{path}', [PageController::class, 'page'])->name('docs.page')->where(['path' => '.*']);
Route::view('become-a-sponsor', 'become-a-sponsor')->name('become-a-sponsor');