Routing

The LaunchStack routes are split into files like:

  • routes/admin.php

  • routes/app.php

  • routes/blog.php

  • routes/website.php

  • routes/web.php [It's responsible to include all routes above]

  • routes/auth.php

  • routes/api.php

  • routes/channels.php

  • routes/console.php

Let's suppose you want to add the help center to your application, you need to create a new file inside the routes folder like help.php

<?php

use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Help\ArticleController;

Route::get('/help', [ArticleController::class, 'index'])->name('help.articles.index');
Route::get('/help/{slug}', [ArticleController::class, 'show'])->name('help.articles.show');

Last updated