Is there a way to create routes with prefixes so I can have routes like this
/articles.html -> goes to listing Controller in default language /en/article
You can use a table to define the accepted languages and then:
Route::group([ 'prefix' => '/{lang?}', 'where' => ['lang' => 'exists:languages,short_name'], ], function() { // Define Routes Here });