Required parameter ‘$routes’ missing

  laravel, laravel-5

There i Have a warning In Laravel 5.5 in This Code:

Route::prefix('dashboard')->group(function () {

 Route::get('/', function () {
    return 'index';
  });

 Route::get('/menu', function () {
    return 'menu';
 });

});

i have this warning:

Required parameter ‘$routes’ missing

Source: Laravel

Leave a Reply