Well not much to go on here but … Route::resource
will by default try to use the “singular” version of a resource name. karyawananggota
passed through Illuminate\Support\Str::singular()
yields karyawananggotum
.
If you don’t want this to be the case you can override this parameter for just this resource:
Route::resource(
'karyawananggotum',
'...',
['parameters' => ['karyawananggotum' => 'karyawananggotum']]
);
If you never want this to automatically happen for your resource names when used as parameters you can also adjust that globally:
Illuminate\Routing\ResourceRegistrar::singularParameters(false);
You can also map these resource names to parameters globally if needed as well.
1
solved why URI resources can change in laravel [closed]