Laravel Route::group
's in order to achieve the ability to prefix route names.
Route::group(['prefix' => 'song', 'as' => 'song.'], function() {
// Route::get('example', function() { return; })->name('example');
});
In order to then access this route, you must use its name.
route('song.example');
Consider giving your route a name, this should fix the issue.
Route::group(['prefix' => 'song', 'as' => 'song.'], function() {
Route::resource('songs', 'Account\Controller')
->except(['show'])
->name('songs');
});
Which can then be called like:
route('song.songs');