name('avatar.')->group(function () { Route::get('player/{name}', 'TextureController@avatarByPlayer')->name('player'); Route::get('user/{uid}', 'TextureController@avatarByUser')->name('user'); Route::get('hash/{hash}', 'TextureController@avatarByHash')->name('hash'); Route::get('{tid}', 'TextureController@avatarByTexture')->name('texture'); }); Route::prefix('preview')->name('preview.')->group(function () { Route::get('{texture}', 'TextureController@preview')->name('texture') ->middleware(Illuminate\Routing\Middleware\SubstituteBindings::class); Route::get('hash/{hash}', 'TextureController@previewByHash')->name('hash'); });