Closed gpluess closed 1 year ago
Hi,
When you use Route::resource()
, you never call Lang::uri()
, because it only accepts single URI's.
To enable resource URI's, we would need to override Route::resource()
.
This may be possible, but it's not supported at the moment.
I actually tried using Route::resource(Lang::uri('companies'), CompanyController::class)
but that didn't do the trick. Will use explicit routes then...
Great package! :)
When I define my routes explicitly like this...
... everything works as expected:
But when I use the shorthand...
... the routes are not translated correctly:
And this is what my /lang/de/routes.php looks like:
What am I doing wrong? Is it even possible to use
Route::resource()
with this package?