Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created Aug 12, 2021
Embed
What would you like to do?
<?php
use App\Http\Controllers\ArticleController;
use Illuminate\Support\Facades\Route;
Route::group([
'prefix' => '{locale}',
'where' => ['locale' => '[a-zA-Z]{2}']
], function () {
Route::get('article/{article}', [ArticleController::class, "index"]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment